Skip to content

Commit

Permalink
chore: re-add log to returned error
Browse files Browse the repository at this point in the history
  • Loading branch information
chatton committed Nov 21, 2024
1 parent 610ff2d commit cec1953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func (chain *TestChain) SendMsgs(msgs ...sdk.Msg) (*abci.ExecTxResult, error) {
txResult := resp.TxResults[0]

if txResult.Code != 0 {
return txResult, fmt.Errorf("%s/%d", txResult.Codespace, txResult.Code)
return txResult, fmt.Errorf("%s/%d: %q", txResult.Codespace, txResult.Code, txResult.Log)
}

chain.Coordinator.IncrementTime()
Expand Down

0 comments on commit cec1953

Please sign in to comment.