From e4c166a571b5e43ba01687a709b8315f4d2a559b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Ferrari?= Date: Sun, 27 Aug 2017 22:56:10 +0200 Subject: [PATCH] Write debug message in case of silently catched exceptions. --- src/gui/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } } -- 2.39.5