diff --git a/multihash.go b/multihash.go index 54d9015..ccfea83 100644 --- a/multihash.go +++ b/multihash.go @@ -31,7 +31,7 @@ type ErrInconsistentLen struct { } func (e ErrInconsistentLen) Error() string { - return fmt.Sprintf("multihash length inconsistent: %v", e.dm) + return fmt.Sprintf("multihash length inconsistent: expected %d, got %d", e.dm.Length, len(e.dm.Digest)) } // constants