From fd78ea90b8473ea9456aadd86fa1c65c20f4c277 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 19 Nov 2022 21:29:41 -0700 Subject: [PATCH] if the startupFSM detects a fatal error during startup, at least tell the user --- gtk2_ardour/ardour_ui_startup.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/ardour_ui_startup.cc b/gtk2_ardour/ardour_ui_startup.cc index db2edad063..c04e657326 100644 --- a/gtk2_ardour/ardour_ui_startup.cc +++ b/gtk2_ardour/ardour_ui_startup.cc @@ -524,8 +524,19 @@ ARDOUR_UI::sfsm_response (StartupFSM::Result r) DEBUG_TRACE (DEBUG::GuiStartup, string_compose (X_("startup FSM response %1\n"), r)); switch (r) { - case StartupFSM::ExitProgram: + case StartupFSM::ExitProgram: { + std::stringstream str;; + dump_errors (str, 10); + std::string msg (string_compose (_("Something went seriously wrong. %1 cannot continue.\n\n" + "Here are a few hints at what might be wrong:\n\n%2"), + PROGRAM_NAME, + str.str())); + ArdourMessageDialog d (msg, true); + d.set_title (_("Hmm. Not Good")); + d.run(); + queue_finish (); + } break; case StartupFSM::LoadSession: