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:41:56 +0200
commit59f3185fdcec6b5f9607d6ee63266c82ea935eb2 (patch)
tree17af08bf625275135a42dcf012fd2eb2657b47b2 /main.go
parent94ed96dfa9cc2d6dc667556a7fd5a672b503b845 (diff)
do not print success every time
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 38a955b..9bd946a 100644
--- a/main.go
+++ b/main.go
@@ -88,7 +88,7 @@ func mode[T any](list ModeMap[T], fire func(mode T) *spool.ExitCode) *spool.Exit
code := list.Traverse(func(in T) *spool.ExitCode {
return fire(in)
})
- if code != nil {
+ if code != nil && code != spool.Success {
_, _ = spool.Warn("%v\n", code.Message)
code.Exit()
}