mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +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) {
|
if os.IsNotExist(err) {
|
||||||
continue
|
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() {
|
if !stat.Mode().IsRegular() {
|
||||||
continue
|
continue
|
||||||
|
@ -90,7 +90,7 @@ func DevicesFromPath(g *generate.Generator, devicePath string) error {
|
|||||||
}
|
}
|
||||||
st, err := os.Stat(resolvedDevicePath)
|
st, err := os.Stat(resolvedDevicePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "cannot stat %s", devicePath)
|
return errors.Wrapf(err, "cannot stat device path %s", devicePath)
|
||||||
}
|
}
|
||||||
if st.IsDir() {
|
if st.IsDir() {
|
||||||
found := false
|
found := false
|
||||||
|
Reference in New Issue
Block a user