cmd: log errors

This commit is contained in:
Ethan Buchman
2017-03-23 18:51:15 -04:00
parent f156eb5bbd
commit 30da6eebb0
3 changed files with 10 additions and 3 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"github.com/tendermint/basecoin/cmd/commands"
@@ -24,5 +25,9 @@ func main() {
commands.AccountCmd,
commands.UnsafeResetAllCmd,
}
app.Run(os.Args)
err := app.Run(os.Args)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}