diff options
Diffstat (limited to 'container/path.go')
| -rw-r--r-- | container/path.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/container/path.go b/container/path.go index 8a01c932..be3cd384 100644 --- a/container/path.go +++ b/container/path.go @@ -151,8 +151,7 @@ func (p *procPaths) mountinfo(f func(d *vfs.MountInfoDecoder) error) error { d := vfs.NewMountInfoDecoder(r) err0 := f(d) if err = r.Close(); err != nil { - return wrapErrSuffix(err, - "cannot close mountinfo:") + return wrapErrSelf(err) } else if err = d.Err(); err != nil { return wrapErrSuffix(err, "cannot parse mountinfo:") |
