From 04059c92d454c655bd79ea007739f666a0faee26 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 1 Sep 2026 22:08:50 +0900 Subject: pkg: improve checksum error formatting This increases readability. Signed-off-by: Ophestra --- pkg/pkg.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/pkg.go') 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]. -- cgit v1.3.1