Commit 5348b5e6 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Improve error message when CLI wrapper Exec fails

parent bbda54b3
...@@ -204,7 +204,10 @@ func stageAndRun(dataDir, cmd string, args []string) error { ...@@ -204,7 +204,10 @@ func stageAndRun(dataDir, cmd string, args []string) error {
logrus.Debugf("Running %s %v", cmd, args) logrus.Debugf("Running %s %v", cmd, args)
return syscall.Exec(cmd, args, os.Environ()) if err := syscall.Exec(cmd, args, os.Environ()); err != nil {
return errors.Wrapf(err, "exec %s failed", cmd)
}
return nil
} }
// getAssetAndDir returns the name of the bindata asset, along with a directory path // getAssetAndDir returns the name of the bindata asset, along with a directory path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment