| 44 | extern Config config; |
| 45 | |
| 46 | void FatalError(const char* title, const char* fmt, ...) { |
| 47 | static const int kBufSize = 1024; |
| 48 | char err_buf[kBufSize]; |
| 49 | va_list args; |
| 50 | va_start(args, fmt); |
| 51 | VFormatString(err_buf, kBufSize, fmt, args); |
| 52 | va_end(args); |
| 53 | DisplayError(title, err_buf, _ok); |
| 54 | LOGF << "Showing fatal message: " << title << "," << err_buf << std::endl; |
| 55 | LOGF << "Shutting down after fatal error" << std::endl; |
| 56 | LogSystem::Flush(); |
| 57 | _exit(1); |
| 58 | } |
| 59 | |
| 60 | ErrorResponse DisplayFormatError(ErrorType type, |
| 61 | bool allow_repetition, |
no test coverage detected