Web collapses every command failure to a boolean #106

closed cmc opened this on 2026-09-03 05:13 UTC · web · milestone v1.10.0

Discussion

cmc 2026-09-03 05:13 UTC

runControl and runControlStdin (internal/httpd/control.go:22-67) return only ok; the exit code is discarded. Handlers redirect with ?e=msg (issueactions.go:16) whether the cause was 404, 403 or 400. runControlIntoCode exists for one caller and statusForExit (api.go:101) already maps codes.

Remedy: return the code from all four helpers and map it through statusForExit.

closed by commit 467699a1ed by cmc: web: form actions answer by exit code

2026-09-04 00:38 UTC