From cec19538b046b3efc717de985630b9f2ee1074a9 Mon Sep 17 00:00:00 2001 From: chatton Date: Thu, 21 Nov 2024 12:00:26 +0000 Subject: [PATCH] chore: re-add log to returned error --- testing/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/chain.go b/testing/chain.go index 52a9e22da28..a4b9dc43143 100644 --- a/testing/chain.go +++ b/testing/chain.go @@ -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()