| 241 | } |
| 242 | |
| 243 | void fatalError(char const* message, bool showStackTrace) { |
| 244 | std::ostringstream ss; |
| 245 | ss << "v" << OpenStarVersionString << " (" << StarSourceIdentifierString << ")\n" |
| 246 | << "Fatal Error: " << message << std::endl; |
| 247 | if (showStackTrace) |
| 248 | ss << outputStack(captureStack()); |
| 249 | |
| 250 | Logger::log(LogLevel::Error, ss.str().c_str()); |
| 251 | MessageBoxW(NULL, stringToUtf16(ss.str()).get(), stringToUtf16("Error").get(), MB_OK | MB_ICONERROR | MB_SYSTEMMODAL); |
| 252 | |
| 253 | std::abort(); |
| 254 | } |
| 255 | |
| 256 | void fatalException(std::exception const& e, bool showStackTrace) { |
| 257 | std::ostringstream ss; |
no test coverage detected