diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-09 05:04:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-09 05:18:19 +0900 |
| commit | 87b5c30ef6d5b7b8a10d6a5a8610054c403923e6 (patch) | |
| tree | 805116c39a623bb30fc532af47ea3ed78b7304c0 /system/output.go | |
| parent | df9b77b077d967d35082adb8ab3b00dd67d7bc97 (diff) | |
message: relocate from container
This package is quite useful. This change allows it to be imported without importing container.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/output.go')
| -rw-r--r-- | system/output.go | 5 |
1 files changed, 3 insertions, 2 deletions
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()) |
