mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-08 18:49:00 +02:00
Show executed command when errors occurred (#1252)
This commit is contained in:
@@ -64,7 +64,8 @@ func combinedOutput(c *exec.Cmd, logger *zap.SugaredLogger) ([]byte, error) {
|
||||
// so that helmfile could return its own exit code accordingly
|
||||
waitStatus := ee.Sys().(syscall.WaitStatus)
|
||||
exitStatus := waitStatus.ExitStatus()
|
||||
err = newExitError(c.Path, exitStatus, string(e))
|
||||
cmd := fmt.Sprintf("%s %s", c.Path, strings.Join(c.Args, " "))
|
||||
err = newExitError(cmd, exitStatus, string(e))
|
||||
default:
|
||||
panic(fmt.Sprintf("unexpected error: %v", err))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user