(msg string)
| 41 | ) |
| 42 | |
| 43 | func newBadCommandError(msg string) error { |
| 44 | return &exitError{ |
| 45 | Err: errors.New(msg), |
| 46 | Code: 1, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // exitError is an error with an exit code, that's returned when the cmd exits. |
| 51 | // When possible, try to match these conventions: https://tldp.org/LDP/abs/html/exitcodes.html |
no outgoing calls
no test coverage detected