diff options
Diffstat (limited to 'source/core/StarException_unix.cpp')
-rw-r--r-- | source/core/StarException_unix.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/core/StarException_unix.cpp b/source/core/StarException_unix.cpp index 578c0b4..71ffd2b 100644 --- a/source/core/StarException_unix.cpp +++ b/source/core/StarException_unix.cpp @@ -112,23 +112,23 @@ OutputProxy outputException(std::exception const& e, bool fullStacktrace) { } void printStack(char const* message) { - Logger::info("Stack Trace (%s)...\n%s", message, outputStack(captureStack())); + Logger::info("Stack Trace ({})...\n{}", message, outputStack(captureStack())); } void fatalError(char const* message, bool showStackTrace) { if (showStackTrace) - Logger::error("Fatal Error: %s\n%s", message, outputStack(captureStack())); + Logger::error("Fatal Error: {}\n{}", message, outputStack(captureStack())); else - Logger::error("Fatal Error: %s", message); + Logger::error("Fatal Error: {}", message); std::abort(); } void fatalException(std::exception const& e, bool showStackTrace) { if (showStackTrace) - Logger::error("Fatal Exception caught: %s\nCaught at:\n%s", outputException(e, true), outputStack(captureStack())); + Logger::error("Fatal Exception caught: {}\nCaught at:\n{}", outputException(e, true), outputStack(captureStack())); else - Logger::error("Fatal Exception caught: %s", outputException(e, showStackTrace)); + Logger::error("Fatal Exception caught: {}", outputException(e, showStackTrace)); std::abort(); } |