1
0

Non-zero exit status if something failed

This commit is contained in:
2018-12-07 03:14:10 +00:00
parent 4dd34fec1d
commit 2a3c3ed18e
2 changed files with 7 additions and 0 deletions

View File

@ -193,4 +193,8 @@ func main() {
if err != nil {
log.Fatalln(err)
}
if somethingFailed {
os.Exit(1)
}
}