summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-25 18:27:44 +0200
committerewy <ewy0@protonmail.com>2026-08-25 18:27:44 +0200
commit94ed96dfa9cc2d6dc667556a7fd5a672b503b845 (patch)
tree022a705f926cbc1be3cca75742b4d4494a54989e /main.go
parent0621dd7ceba85931ce37f95026231a26879e814b (diff)
always output exit error messages
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 084945f..38a955b 100644
--- a/main.go
+++ b/main.go
@@ -89,6 +89,7 @@ func mode[T any](list ModeMap[T], fire func(mode T) *spool.ExitCode) *spool.Exit
return fire(in)
})
if code != nil {
+ _, _ = spool.Warn("%v\n", code.Message)
code.Exit()
}
return nil