- Mf::logError("unhandled exception: <<%s>>", e.what());
- Mf::logInfo("it's time to crash now :-(");
- throw e;
+ Mf::logError("unhandled exception (code %d): \"%s\"",
+ e.code(), e.what());
+
+ Mf::ModalDialog dialog;
+ dialog.title = PACKAGE_STRING;
+ dialog.text1 = "Unhandled Exception";
+ dialog.text2 = e.what();
+ dialog.type = Mf::ModalDialog::CRITICAL;
+ dialog.run();
+
+ return 1;