diff options
author | Matthew Heon <mheon@redhat.com> | 2020-08-24 11:48:53 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-08-27 15:05:12 -0400 |
commit | 2ac37f10b4e87dd360b6c6b6a20524a4c414b916 (patch) | |
tree | 42fb024ca6c13563806cd82a8603bc967e133e92 /libpod/oci_conmon_linux.go | |
parent | 72c5b35ea5db44ca1c81a688d90f5c3aa8f8262e (diff) | |
download | podman-2ac37f10b4e87dd360b6c6b6a20524a4c414b916.tar.gz podman-2ac37f10b4e87dd360b6c6b6a20524a4c414b916.tar.bz2 podman-2ac37f10b4e87dd360b6c6b6a20524a4c414b916.zip |
Fix up some error messages
We have a lot of 'cannot stat %s' errors in our codebase. These
are terrible and confusing and utterly useless without context.
Add some context to a few of them so we actually know what part
of the code is failing.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/oci_conmon_linux.go')
-rw-r--r-- | libpod/oci_conmon_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go index 82d91c3f6..f66835771 100644 --- a/libpod/oci_conmon_linux.go +++ b/libpod/oci_conmon_linux.go @@ -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 |