FormatError formats an error for CLI output.
(err error)
| 66 | |
| 67 | // FormatError formats an error for CLI output. |
| 68 | func FormatError(err error) string { |
| 69 | if err == nil { |
| 70 | return "ERR: unknown error" |
| 71 | } |
| 72 | return "ERR: " + err.Error() |
| 73 | } |
| 74 | |
| 75 | // MustExecutable returns the current executable path or panics when unavailable. |
| 76 | func MustExecutable() string { |