Skip to content

Commit 1cc6dbd

Browse files
joeybloggsjoeybloggs
authored andcommitted
log fatal when bad run
1 parent 663e01e commit 1cc6dbd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

misc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ func executeCmd(command string, args ...string) {
3333
// go generate command will fail when no generate command find.
3434
if err != nil {
3535
if err.Error() != "exit status 1" {
36-
log.Println(err)
36+
log.Fatal(err)
3737
}
38-
// log.Fatal(os.Stderr, "Error waiting for Cmd", err)
3938
}
4039
}

0 commit comments

Comments
 (0)