Skip to content

Commit

Permalink
[GUI] Properly handle exceptions when GTK cannot be started
Browse files Browse the repository at this point in the history
Related to #360
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Nov 27, 2024
1 parent 674a2c3 commit 83d84ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui_gtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1360,9 +1360,8 @@ int start_gui_gtk(Data &data)
GtkData gdata(builder, data);
return app->run(*gdata.mainwindow);
}
catch(const Gtk::BuilderError& e)
catch(...)
{
std::cerr << e.what() << std::endl;
MSG_ERROR("%s", _("failed to import UI in GtkBuilder"));
return EXIT_FAILURE;
}
Expand Down

0 comments on commit 83d84ac

Please sign in to comment.