mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Improve error message when CLI wrapper Exec fails
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
bbda54b332
commit
5348b5e696
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user