| 150 | } |
| 151 | |
| 152 | void fatalError(char const* message, bool showStackTrace) { |
| 153 | if (showStackTrace) |
| 154 | #ifdef STAR_USE_CPPTRACE |
| 155 | Logger::error("Fatal Error: {}\n{}", message, captureBacktrace()); |
| 156 | #else |
| 157 | Logger::error("Fatal Error: {}\n{}", message, outputStack(captureStack())); |
| 158 | #endif |
| 159 | else |
| 160 | Logger::error("Fatal Error: {}", message); |
| 161 | |
| 162 | std::abort(); |
| 163 | } |
| 164 | |
| 165 | void fatalException(std::exception const& e, bool showStackTrace) { |
| 166 | if (showStackTrace) |
no test coverage detected