Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarException_windows.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:55:10 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:55:10 +1000
commitbaf3a1cf7671e3be0c614a55803b56d1e8aa4b0d (patch)
treef39cd6bcb07c2b51bc5630bd913a660ea52e921b /source/core/StarException_windows.cpp
parent332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (diff)
Fix crash warping to planets and leftover formatting errors
Diffstat (limited to 'source/core/StarException_windows.cpp')
-rw-r--r--source/core/StarException_windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarException_windows.cpp b/source/core/StarException_windows.cpp
index 54254d4..87d9ed6 100644
--- a/source/core/StarException_windows.cpp
+++ b/source/core/StarException_windows.cpp
@@ -233,7 +233,7 @@ void fatalError(char const* message, bool showStackTrace) {
if (showStackTrace)
ss << outputStack(captureStack());
- Logger::error(ss.str().c_str());
+ Logger::log(LogLevel::Error, ss.str().c_str());
MessageBoxW(NULL, stringToUtf16(ss.str()).get(), stringToUtf16("Error").get(), MB_OK | MB_ICONERROR | MB_SYSTEMMODAL);
std::abort();
@@ -245,7 +245,7 @@ void fatalException(std::exception const& e, bool showStackTrace) {
if (showStackTrace)
ss << "Caught at:" << std::endl << outputStack(captureStack());
- Logger::error(ss.str().c_str());
+ Logger::log(LogLevel::Error, ss.str().c_str());
MessageBoxW(NULL, stringToUtf16(ss.str()).get(), stringToUtf16("Error").get(), MB_OK | MB_ICONERROR | MB_SYSTEMMODAL);
std::abort();