Explorar el Código

core: fix a formatting loop in BadHashError

Péter Szilágyi hace 10 años
padre
commit
b8b996be74
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/error.go

+ 1 - 1
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 {