Merge pull request #7427 from mheon/update_error_messages

Fix up some error messages
This commit is contained in:
OpenShift Merge Robot
2020-08-28 08:30:01 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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