mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +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:
@ -48,7 +48,7 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
|
||||
|
||||
if c.state.State == define.ContainerStateRunning && options.Pause {
|
||||
if err := c.pause(); err != nil {
|
||||
return nil, fmt.Errorf("error pausing container %q to commit: %w", c.ID(), err)
|
||||
return nil, fmt.Errorf("pausing container %q to commit: %w", c.ID(), err)
|
||||
}
|
||||
defer func() {
|
||||
if err := c.unpause(); err != nil {
|
||||
@ -202,7 +202,7 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
|
||||
|
||||
imageRef, err := is.Transport.ParseStoreReference(c.runtime.store, resolvedImageName)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing target image name %q: %w", destImage, err)
|
||||
return nil, fmt.Errorf("parsing target image name %q: %w", destImage, err)
|
||||
}
|
||||
commitRef = imageRef
|
||||
}
|
||||
|
Reference in New Issue
Block a user