* Report an error and exit. */
| 73 | * Report an error and exit. |
| 74 | */ |
| 75 | void NO_RETURN e9tool::error(const char *msg, ...) |
| 76 | { |
| 77 | flushWarnings(); |
| 78 | |
| 79 | fprintf(stderr, "%serror%s : ", |
| 80 | (option_is_tty? "\33[31m": ""), |
| 81 | (option_is_tty? "\33[0m" : "")); |
| 82 | |
| 83 | va_list ap; |
| 84 | va_start(ap, msg); |
| 85 | vfprintf(stderr, msg, ap); |
| 86 | va_end(ap); |
| 87 | putc('\n', stderr); |
| 88 | |
| 89 | _Exit(EXIT_FAILURE); |
| 90 | } |
| 91 | |
| 92 | /* |
| 93 | * Print a warning message. |
nothing calls this directly
no test coverage detected