aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/GpgFrontendApplication.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-18 12:54:02 +0000
committersaturneric <[email protected]>2023-10-18 12:54:02 +0000
commit76fda183d4c1067ab1735965e9bde3c7b29d1345 (patch)
tree54723eb8698dfe6f7e5dbc4c16b9da16e192d44b /src/ui/GpgFrontendApplication.cpp
parentfix: improve thread and module relation (diff)
downloadGpgFrontend-76fda183d4c1067ab1735965e9bde3c7b29d1345.tar.gz
GpgFrontend-76fda183d4c1067ab1735965e9bde3c7b29d1345.zip
feat: simplify the thread system and improve its stability
Diffstat (limited to 'src/ui/GpgFrontendApplication.cpp')
-rw-r--r--src/ui/GpgFrontendApplication.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/GpgFrontendApplication.cpp b/src/ui/GpgFrontendApplication.cpp
index 6f80f534..21932f44 100644
--- a/src/ui/GpgFrontendApplication.cpp
+++ b/src/ui/GpgFrontendApplication.cpp
@@ -77,8 +77,8 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
try {
app_done = QApplication::notify(receiver, event);
} catch (const std::exception &ex) {
- SPDLOG_ERROR("exception caught in notify: {}", ex.what());
- SPDLOG_ERROR("exception stacktrace: {}",
+ SPDLOG_ERROR("exception was caught in notify: {}", ex.what());
+ SPDLOG_ERROR("stacktrace of the exception: {}",
boost::stacktrace::to_string(boost::stacktrace::stacktrace()));
QMessageBox::information(nullptr, _("Standard Exception Thrown"),
_("Oops, an standard exception was thrown "
@@ -87,7 +87,9 @@ bool GpgFrontendApplication::notify(QObject *receiver, QEvent *event) {
"be the negligence of the programmer, "
"please report this problem if you can."));
} catch (...) {
- SPDLOG_ERROR("unknown exception caught in notify");
+ SPDLOG_ERROR("unknown exception was caught in notify");
+ SPDLOG_ERROR("stacktrace of the exception: {}",
+ boost::stacktrace::to_string(boost::stacktrace::stacktrace()));
QMessageBox::information(
nullptr, _("Unhandled Exception Thrown"),
_("Oops, an unhandled exception was thrown "