mirror of
https://github.com/containers/podman.git
synced 2025-06-24 03:08:13 +08:00
Merge pull request #7427 from mheon/update_error_messages
Fix up some error messages
This commit is contained in:
@ -120,7 +120,7 @@ func newConmonOCIRuntime(name string, paths []string, conmonPath string, runtime
|
||||
if os.IsNotExist(err) {
|
||||
continue
|
||||
}
|
||||
return nil, errors.Wrapf(err, "cannot stat %s", path)
|
||||
return nil, errors.Wrapf(err, "cannot stat OCI runtime %s path %q", name, path)
|
||||
}
|
||||
if !stat.Mode().IsRegular() {
|
||||
continue
|
||||
|
@ -90,7 +90,7 @@ func DevicesFromPath(g *generate.Generator, devicePath string) error {
|
||||
}
|
||||
st, err := os.Stat(resolvedDevicePath)
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "cannot stat %s", devicePath)
|
||||
return errors.Wrapf(err, "cannot stat device path %s", devicePath)
|
||||
}
|
||||
if st.IsDir() {
|
||||
found := false
|
||||
|
Reference in New Issue
Block a user