5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-12 23:19:29 +08:00

Output error message in runCommand

This commit is contained in:
Lea Anthony 2022-03-14 22:53:46 +11:00
parent 8aea6a3bfc
commit 15e5eb67f9

View File

@ -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)
}