Skip to content

Commit

Permalink
odb++ output: catch glib errors
Browse files Browse the repository at this point in the history
  • Loading branch information
carrotIndustries committed Sep 11, 2023
1 parent f88c596 commit bc17786
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/imp/fab_output_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ void FabOutputWindow::generate()
catch (const std::exception &e) {
odb_done_revealer_controller.show_error("Error: " + std::string(e.what()));
}
catch (const Glib::Error &e) {
odb_done_revealer_controller.show_error(std::string("Error: ") + e.what());
}
catch (...) {
odb_done_revealer_controller.show_error("unknown error");
}
Expand Down

0 comments on commit bc17786

Please sign in to comment.