diff options
| author | ewy <ewy0@protonmail.com> | 2026-10-08 16:41:56 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-10-08 16:41:56 +0200 |
| commit | 59f3185fdcec6b5f9607d6ee63266c82ea935eb2 (patch) | |
| tree | 17af08bf625275135a42dcf012fd2eb2657b47b2 | |
| parent | 94ed96dfa9cc2d6dc667556a7fd5a672b503b845 (diff) | |
do not print success every time
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() } |
