Skip to content

Commit

Permalink
Merge pull request #1854 from karalabe/badhasherror-formatting-loop
Browse files Browse the repository at this point in the history
core: fix a formatting loop in BadHashError
  • Loading branch information
obscuren committed Sep 29, 2015
2 parents 7977e87 + b8b996b commit 9b94076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b94076

Please sign in to comment.