From cf7c34555c8df07d9baf582c65a9e88d1605e075 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 28 Jun 2026 18:01:51 +0900 Subject: cmd/earlyinit: improve error messages This improves readability, especially on a small display. Signed-off-by: Ophestra --- cmd/earlyinit/modprobe.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cmd/earlyinit/modprobe.go') diff --git a/cmd/earlyinit/modprobe.go b/cmd/earlyinit/modprobe.go index 8addf973..8194c150 100644 --- a/cmd/earlyinit/modprobe.go +++ b/cmd/earlyinit/modprobe.go @@ -26,8 +26,9 @@ var _ report.RepresentableError = ModprobeError{} func (ModprobeError) Representable() {} func (e ModprobeError) Error() string { return fmt.Sprintf( - "modprobe exit status %d: %s", - e.ExitCode, strings.TrimSpace(e.Stderr), + "%s (exit status %d)", + strings.TrimPrefix(strings.TrimSpace(e.Stderr), "modprobe: "), + e.ExitCode, ) } -- cgit v1.3.1