mirror of
https://github.com/containers/podman.git
synced 2025-07-01 16:17:06 +08:00
Stop excessive wrapping of errors
Most of the builtin golang functions like os.Stat and os.Open report errors including the file system object path. We should not wrap these errors and put the file path in a second time, causing stuttering of errors when they get presented to the user. This patch tries to cleanup a bunch of these errors. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -29,7 +29,7 @@ func stopPauseProcess() error {
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
return errors.Wrapf(err, "cannot read pause process pid file %s", pausePidPath)
|
||||
return errors.Wrap(err, "cannot read pause process pid file")
|
||||
}
|
||||
pausePid, err := strconv.Atoi(string(data))
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user