We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 098e2f8 + 1dd3e92 commit e40ee14Copy full SHA for e40ee14
basher.go
@@ -94,7 +94,14 @@ func ApplicationWithPath(
94
}
95
status, err := bash.Run("main", os.Args[1:])
96
if err != nil {
97
- log.Fatal(err)
+ // the string message for ExitError shouldn't be logged
98
+ // as it is just `exit status $CODE`, which is redundant
99
+ // when that code can just be used to exit the program
100
+ if _, ok := err.(*exec.ExitError); ok && strings.HasPrefix(err.Error(), "exit status ") {
101
+ os.Exit(status)
102
+ } else {
103
+ log.Fatal(err)
104
+ }
105
106
os.Exit(status)
107
0 commit comments