exitCodeError is a sentinel error that carries a non-zero exit code. It is returned by output helpers and handled by Execute().
| 13 | // exitCodeError is a sentinel error that carries a non-zero exit code. |
| 14 | // It is returned by output helpers and handled by Execute(). |
| 15 | type exitCodeError struct { |
| 16 | code int |
| 17 | } |
| 18 | |
| 19 | func (e exitCodeError) Error() string { |
| 20 | return fmt.Sprintf("exit code %d", e.code) |
nothing calls this directly
no outgoing calls
no test coverage detected