Fixed a crash when "resources/shapes" directory doesn't exist.

+ Localization for the "Internal error: %1%" in generic_exception_handle()
This commit is contained in:
YuSanka 2021-07-15 09:04:12 +02:00
parent d7205c9461
commit 0220ae4ce5
2 changed files with 5 additions and 8 deletions

View file

@ -608,7 +608,7 @@ static void generic_exception_handle()
std::terminate();
throw;
} catch (const std::exception& ex) {
wxLogError("Internal error: %s", wxString::FromUTF8(ex.what()));
wxLogError(format_wxstr(_L("Internal error: %1%"), ex.what()));
BOOST_LOG_TRIVIAL(error) << boost::format("Uncaught exception: %1%") % ex.what();
throw;
}