Output error message in runCommand

This commit is contained in:
Lea Anthony
2022-03-14 22:53:46 +11:00
parent 8aea6a3bfc
commit 15e5eb67f9
@@ -246,6 +246,7 @@ func runCommand(dir string, exitOnError bool, command string, args ...string) er
output, err := cmd.CombinedOutput()
if err != nil {
println(string(output))
println(err.Error())
if exitOnError {
os.Exit(1)
}