Cli now returns errors on non-zero code from DeliverTx

This commit is contained in:
Ethan Frey
2017-07-18 12:08:29 +02:00
parent e5db61a63a
commit 9fd250209e
4 changed files with 31 additions and 3 deletions
@@ -76,6 +76,9 @@ func counterTx(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
if err = bcmd.ValidateResult(bres); err != nil {
return err
}
// Output result
return txcmd.OutputTx(bres)