aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-09-29 14:11:38 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-09-29 14:11:38 +0800
commitb8b996be74bf0b180475a670b57604cb33f6819f (patch)
treec944dcac2670252495bf95169ab2740d47cd36c7
parent7977e87ce1e9ec46a8e8275f4cf53b6281c412c7 (diff)
downloaddexon-b8b996be74bf0b180475a670b57604cb33f6819f.tar
dexon-b8b996be74bf0b180475a670b57604cb33f6819f.tar.gz
dexon-b8b996be74bf0b180475a670b57604cb33f6819f.tar.bz2
dexon-b8b996be74bf0b180475a670b57604cb33f6819f.tar.lz
dexon-b8b996be74bf0b180475a670b57604cb33f6819f.tar.xz
dexon-b8b996be74bf0b180475a670b57604cb33f6819f.tar.zst
dexon-b8b996be74bf0b180475a670b57604cb33f6819f.zip
core: fix a formatting loop in BadHashError
-rw-r--r--core/error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/error.go b/core/error.go
index ff58d69d6..5e32124a7 100644
--- a/core/error.go
+++ b/core/error.go
@@ -181,7 +181,7 @@ func IsValueTransferErr(e error) bool {
type BadHashError common.Hash
func (h BadHashError) Error() string {
- return fmt.Sprintf("Found known bad hash in chain %x", h)
+ return fmt.Sprintf("Found known bad hash in chain %x", h[:])
}
func IsBadHashError(err error) bool {