| 254 | } |
| 255 | |
| 256 | void fatalException(std::exception const& e, bool showStackTrace) { |
| 257 | std::ostringstream ss; |
| 258 | ss << "v" << OpenStarVersionString << " (" << StarSourceIdentifierString << ")\n" |
| 259 | << "Fatal Exception: " << outputException(e, showStackTrace) << std::endl; |
| 260 | if (showStackTrace) |
| 261 | ss << "Caught at:" << std::endl << outputStack(captureStack()); |
| 262 | |
| 263 | Logger::log(LogLevel::Error, ss.str().c_str()); |
| 264 | MessageBoxW(NULL, stringToUtf16(ss.str()).get(), stringToUtf16("Error").get(), MB_OK | MB_ICONERROR | MB_SYSTEMMODAL); |
| 265 | |
| 266 | std::abort(); |
| 267 | } |
| 268 | |
| 269 | } |
nothing calls this directly
no test coverage detected