summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-10-08 16:41:56 +0200
committerewy <ewy0@protonmail.com>2026-10-08 16:44:00 +0200
commitdf2eed1533742287cf30236fe41bfc4b1ccd375d (patch)
treea43128c47d145e507440c01b3ef96a717ab84135 /main.go
parent94ed96dfa9cc2d6dc667556a7fd5a672b503b845 (diff)
do not print success every time
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 38a955b..e399b6f 100644
--- a/main.go
+++ b/main.go
@@ -89,7 +89,9 @@ 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)
+ if code != spool.Success {
+ _, _ = spool.Warn("%v\n", code.Message)
+ }
code.Exit()
}
return nil