mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-24 00:52:39 +00:00
Add Result.String
This commit is contained in:
@@ -4,10 +4,10 @@ import (
|
||||
"encoding/hex"
|
||||
"strings"
|
||||
|
||||
"github.com/tendermint/abci/types"
|
||||
. "github.com/tendermint/go-common"
|
||||
"github.com/tendermint/go-merkle"
|
||||
"github.com/tendermint/go-wire"
|
||||
"github.com/tendermint/abci/types"
|
||||
)
|
||||
|
||||
type DummyApplication struct {
|
||||
|
||||
+5
-1
@@ -28,7 +28,11 @@ func (res Result) IsErr() bool {
|
||||
}
|
||||
|
||||
func (res Result) Error() string {
|
||||
return fmt.Sprintf("ABCI code:%v, data:%X, log:%v", res.Code, res.Data, res.Log)
|
||||
return fmt.Sprintf("ABCI{code:%v, data:%X, log:%v}", res.Code, res.Data, res.Log)
|
||||
}
|
||||
|
||||
func (res Result) String() string {
|
||||
return fmt.Sprintf("ABCI{code:%v, data:%X, log:%v}", res.Code, res.Data, res.Log)
|
||||
}
|
||||
|
||||
func (res Result) PrependLog(log string) Result {
|
||||
|
||||
Reference in New Issue
Block a user