aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/output.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/output.go')
-rw-r--r--system/output.go5
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())