mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 13:47:59 -06:00
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:
parent
d7205c9461
commit
0220ae4ce5
2 changed files with 5 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue