From ce41acda7ec5481273295342de68cc4c317559a5 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Thu, 6 May 2021 09:00:47 +0800 Subject: [PATCH] Fix travis_go_checker.sh --- core/rawdb/accessors_offchain.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/rawdb/accessors_offchain.go b/core/rawdb/accessors_offchain.go index d3ee79d99..1789d917b 100644 --- a/core/rawdb/accessors_offchain.go +++ b/core/rawdb/accessors_offchain.go @@ -1,6 +1,7 @@ package rawdb import ( + "fmt" "math/big" "github.com/ethereum/go-ethereum/common" @@ -301,7 +302,7 @@ func ReadBlockCommitSig(db DatabaseReader, blockNum uint64) ([]byte, error) { // this is only needed for the compatibility in the migration moment. data, err = db.Get(lastCommitsKey) if err != nil { - return nil, errors.New("cannot read commit sig for block " + string(blockNum)) + return nil, errors.New(fmt.Sprintf("cannot read commit sig for block: %d ", blockNum)) } } return data, nil