summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Gonzalez <rymg19@gmail.com>2019-01-21 13:35:06 -0600
committerRyan Gonzalez <rymg19@gmail.com>2019-01-21 15:24:10 -0600
commit61216937e7e49a286a6e817f42f6316dfa298c14 (patch)
tree27ee7f9bf8460ec3f36e5f368de6067b3f58b2dd
parentba3509665c16365870ae2c50c6798c0e8489cb78 (diff)
downloadpodman-61216937e7e49a286a6e817f42f6316dfa298c14.tar.gz
podman-61216937e7e49a286a6e817f42f6316dfa298c14.tar.bz2
podman-61216937e7e49a286a6e817f42f6316dfa298c14.zip
Show a better error message when podman info fails during a refresh
Signed-off-by: Ryan Gonzalez <rymg19@gmail.com>
-rw-r--r--libpod/runtime.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 5ff8b30f6..8e7ba8123 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -824,7 +824,11 @@ func (r *Runtime) refreshRootless() error {
// Take advantage of a command that requires a new userns
// so that we are running as the root user and able to use refresh()
cmd := exec.Command(os.Args[0], "info")
- return cmd.Run()
+ err := cmd.Run()
+ if err != nil {
+ return errors.Wrapf(err, "Error running %s info while refreshing state", os.Args[0])
+ }
+ return nil
}
// Reconfigures the runtime after a reboot