summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-11 09:51:06 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-11 09:51:06 +0000
commitb731111427d94da2e3e231892c6e6edf3dd3f40f (patch)
treef507a21c23409ef8f0a6fc6cbcb31ebf3813ee00
parent24ef3197488f259f2ec62aefd4ca15bac6797454 (diff)
Catch std::exception, not just KDMError, from KDM creation.
-rw-r--r--ChangeLog4
-rw-r--r--src/tools/dcpomatic.cc4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ba21e4cb5..38d9b667e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-02-11 Carl Hetherington <cth@carlh.net>
+
+ * Be more careful when catching exceptions from KDM creation.
+
2014-02-10 Carl Hetherington <cth@carlh.net>
* Version 1.64.10 released.
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index 1e60d9690..70e675e40 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -474,8 +474,10 @@ private:
shared_ptr<Job> (new SendKDMEmailJob (film, d->screens (), d->dcp (), d->from (), d->until ()))
);
}
- } catch (KDMError& e) {
+ } catch (exception& e) {
error_dialog (this, e.what ());
+ } catch (...) {
+ error_dialog (this, _("An unknown exeception occurred."));
}
d->Destroy ();