aboutsummaryrefslogtreecommitdiffhomepage
path: root/pkg/pkg.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/pkg.go')
-rw-r--r--pkg/pkg.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/pkg.go b/pkg/pkg.go
index fbd8755f..75e0d1b1 100644
--- a/pkg/pkg.go
+++ b/pkg/pkg.go
@@ -954,8 +954,9 @@ type ChecksumMismatchError struct {
}
func (e *ChecksumMismatchError) Error() string {
- return "got " + Encode(e.Got) +
- " instead of " + Encode(e.Want)
+ return "unexpected checksum\n" +
+ "\t got: " + Encode(e.Got) + "\n" +
+ "\twant: " + Encode(e.Want)
}
// LinknamePrefixError describes a malformed linkname to a [Checksum].