Skip to content

Commit

Permalink
Add BroadcastTx sync raw log to the error message. (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil authored Oct 4, 2023
1 parent 2481ade commit bae640b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ func broadcastTxSync(ctx context.Context, clientCtx Context, txBytes []byte) (*s
}
} else if res.TxResponse.Code != 0 {
return nil, errors.Wrapf(sdkerrors.ABCIError(res.TxResponse.Codespace, res.TxResponse.Code, res.TxResponse.Logs.String()),
"transaction '%s' failed", res.TxResponse.TxHash)
"transaction '%s' failed, raw log:%s", res.TxResponse.TxHash, res.TxResponse.RawLog)
}

return res.TxResponse, nil
Expand Down

0 comments on commit bae640b

Please sign in to comment.