diff --git a/CHANGELOG.md b/CHANGELOG.md index 26d1c87aa4..927c2f688f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.3.1 (March 23, 2017) + +IMPROVEMENTS: + +- CLI returns exit code 1 and logs error before exiting + ## 0.3.0 (March 23, 2017) BREAKING CHANGES: diff --git a/cmd/basecoin/main.go b/cmd/basecoin/main.go index d452aeb6f8..4eb4c944c5 100644 --- a/cmd/basecoin/main.go +++ b/cmd/basecoin/main.go @@ -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) + } } diff --git a/cmd/commands/tx.go b/cmd/commands/tx.go index 3c5cebd837..66c5acc0a7 100644 --- a/cmd/commands/tx.go +++ b/cmd/commands/tx.go @@ -119,9 +119,11 @@ func cmdSendTx(c *cli.Context) error { fmt.Println(string(wire.JSONBytes(tx))) // broadcast the transaction to tendermint - if _, _, err := broadcastTx(c, tx); err != nil { + data, log, err := broadcastTx(c, tx) + if err != nil { return err } + fmt.Printf("Response: %X ; %s\n", data, log) return nil } diff --git a/demo/start.sh b/demo/start.sh index bfc6872350..af91db2a07 100644 --- a/demo/start.sh +++ b/demo/start.sh @@ -36,7 +36,7 @@ function waitForNode() { i=0 while [ "$ERR" != 0 ]; do if [[ "$i" == 10 ]]; then - echo "waited to long for chain to start" + echo "waited too long for chain to start" exit 1 fi echo "...... still waiting on $addr" diff --git a/version/version.go b/version/version.go index 3a114fc238..7708867588 100644 --- a/version/version.go +++ b/version/version.go @@ -2,6 +2,6 @@ package version const Maj = "0" const Min = "3" -const Fix = "0" +const Fix = "1" const Version = Maj + "." + Min + "." + Fix