Skip to content

Commit 9b94076

Browse files
committed
Merge pull request ethereum#1854 from karalabe/badhasherror-formatting-loop
core: fix a formatting loop in BadHashError
2 parents 7977e87 + b8b996b commit 9b94076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func IsValueTransferErr(e error) bool {
181181
type BadHashError common.Hash
182182

183183
func (h BadHashError) Error() string {
184-
return fmt.Sprintf("Found known bad hash in chain %x", h)
184+
return fmt.Sprintf("Found known bad hash in chain %x", h[:])
185185
}
186186

187187
func IsBadHashError(err error) bool {

0 commit comments

Comments
 (0)