mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Refactor a few more catch(...)
instances
This commit is contained in:
parent
f9184f3564
commit
8b7f0c5359
3 changed files with 2 additions and 17 deletions
|
@ -139,9 +139,6 @@ static void generic_exception_handle()
|
|||
wxLogError("Internal error: %s", ex.what());
|
||||
BOOST_LOG_TRIVIAL(error) << boost::format("Uncaught exception: %1%") % ex.what();
|
||||
throw;
|
||||
} catch (...) {
|
||||
wxLogError("Unknown internal error");
|
||||
BOOST_LOG_TRIVIAL(error) << "Uncaught exception: Unknown error";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +166,7 @@ bool GUI_App::OnInit()
|
|||
{
|
||||
try {
|
||||
return on_init_inner();
|
||||
} catch (...) {
|
||||
} catch (const std::exception&) {
|
||||
generic_exception_handle();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue