You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: exit code dispatch was dead code — logger.Error called Fatalf before ExitCodeFor
Three bugs found by five-agent swarm review:
1. main.go: logger.Error() calls log.Fatalf() which exits 1 immediately,
making os.Exit(ExitCodeFor(err)) unreachable dead code. Replaced with
fmt.Fprintf to stderr so the differentiated exit code actually takes
effect. Same fix in innerMain for the unknown-subcommand path.
2. requests.go: HTTP 5xx responses were returned as plain fmt.Errorf,
falling through to exit 1. Now wrapped as ErrServer (exit 2).
3. docs.go/testHelpers/etc: import ordering and alignment (gofmt).
0 commit comments