mirror of
https://github.com/containers/podman.git
synced 2025-06-30 07:26:39 +08:00
Fix stutters
Podman adds an Error: to every error message. So starting an error message with "error" ends up being reported to the user as Error: error ... This patch removes the stutter. Also ioutil.ReadFile errors report the Path, so wrapping the err message with the path causes a stutter. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -39,7 +39,7 @@ func (v *Volume) Inspect() (*define.InspectVolumeData, error) {
|
||||
req.Name = v.Name()
|
||||
resp, err := v.plugin.GetVolume(req)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error retrieving volume %s information from plugin %s: %w", v.Name(), v.Driver(), err)
|
||||
return nil, fmt.Errorf("retrieving volume %s information from plugin %s: %w", v.Name(), v.Driver(), err)
|
||||
}
|
||||
if resp != nil {
|
||||
data.Status = resp.Status
|
||||
|
Reference in New Issue
Block a user