From bc17786e49c6fbe26576695f8bcdbe0cd262646b Mon Sep 17 00:00:00 2001 From: "Lukas K." Date: Mon, 11 Sep 2023 20:32:38 +0200 Subject: [PATCH] odb++ output: catch glib errors --- src/imp/fab_output_window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/imp/fab_output_window.cpp b/src/imp/fab_output_window.cpp index ed6bb1aa..7666fe3b 100644 --- a/src/imp/fab_output_window.cpp +++ b/src/imp/fab_output_window.cpp @@ -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"); }