exit code on error

This commit is contained in:
Ethan Buchman
2017-05-13 20:03:53 -04:00
parent 1d6f11aba7
commit 4a1920a2a7
4 changed files with 23 additions and 3 deletions
+3 -1
View File
@@ -29,5 +29,7 @@ func main() {
)
cmd := cli.PrepareMainCmd(RootCmd, "BC", os.ExpandEnv("$HOME/.basecoin"))
cmd.Execute()
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
}