From 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 9 Oct 2025 05:04:08 +0900 Subject: message: relocate from container This package is quite useful. This change allows it to be imported without importing container. Signed-off-by: Ophestra --- system/output.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system/output.go') diff --git a/system/output.go b/system/output.go index 022164f0..71acace4 100644 --- a/system/output.go +++ b/system/output.go @@ -6,6 +6,7 @@ import ( "os" "hakurei.app/container" + "hakurei.app/message" ) // OpError is returned by [I.Commit] and [I.Revert]. @@ -70,14 +71,14 @@ func printJoinedError(println func(v ...any), fallback string, err error) { error } if !errors.As(err, &joinErr) { - if m, ok := container.GetErrorMessage(err); ok { + if m, ok := message.GetMessage(err); ok { println(m) } else { println(fallback, err) } } else { for _, err = range joinErr.Unwrap() { - if m, ok := container.GetErrorMessage(err); ok { + if m, ok := message.GetMessage(err); ok { println(m) } else { println(err.Error()) -- cgit v1.3.1