From: Martín Ferrari Date: Sun, 27 Aug 2017 20:56:10 +0000 (+0200) Subject: Write debug message in case of silently catched exceptions. X-Git-Tag: 0.6.3~16^2~3 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/e4c166a571b5e43ba01687a709b8315f4d2a559b Write debug message in case of silently catched exceptions. --- diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 98a45c8..3b2582a 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -310,7 +310,8 @@ void MainWindow::useConference(int conferenceId) // end of optimization // initTabs(); - } catch (OrmException& e) { + } catch (const OrmException& e) { + qDebug() << "OrmException:" << e.text(); // cannon set an active conference unsetConference(); // TODO: as no active conference is now correctly managed this should be handled as a fatal error return; @@ -405,7 +406,8 @@ void MainWindow::on_conferencesAction_triggered() // optimization, see useConference() code try { initTabs(); - } catch (OrmException) { + } catch (const OrmException& e) { + qDebug() << "OrmException:" << e.text(); clearTabs(); } }