From f377d60a7cac85702c5f415fe58a6e6a1d298ae2 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 9 Nov 2008 19:22:28 +0000 Subject: [PATCH] When studio fails to start up, show a more specific error message stating why. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2178 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 62780a6..d59c3b0 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -1143,6 +1143,11 @@ App::App(int *argc, char ***argv): // Initialize the Synfig library try { synfigapp_main=etl::smart_ptr(new synfigapp::Main(etl::dirname((*argv)[0]),&synfig_init_cb)); } + catch(std::runtime_error x) + { + get_ui_interface()->error(strprintf("%s\n\n%s", _("Failed to initialize synfig!"), x.what())); + throw; + } catch(...) { get_ui_interface()->error(_("Failed to initialize synfig!")); -- 2.7.4