Don't exit if returnCode is 0: otherwise panic is not reported.

This commit is contained in:
Andrey Smirnov
2014-03-12 18:15:18 +04:00
parent aade09e74e
commit 91da3b2046

View File

@@ -60,7 +60,9 @@ func main() {
if errorMessage != "" {
fmt.Print(errorMessage)
}
os.Exit(returnCode)
if returnCode != 0 {
os.Exit(returnCode)
}
}()
command := cmd.RootCommand()