Error will print a red error message but will not exit.
(format string, a ...any)
| 79 | |
| 80 | // Error will print a red error message but will not exit. |
| 81 | func Error(format string, a ...any) { |
| 82 | format = ColorizeText(format, "red") |
| 83 | if a != nil { |
| 84 | output.UserErr.Errorf(format, a...) |
| 85 | } else { |
| 86 | output.UserErr.Error(format) |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | // Warning will present the user with warning text. |
| 91 | func Warning(format string, a ...any) { |
no test coverage detected