summaryrefslogtreecommitdiff
path: root/src
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 /src
parent24ef3197488f259f2ec62aefd4ca15bac6797454 (diff)
Catch std::exception, not just KDMError, from KDM creation.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic.cc4
1 files changed, 3 insertions, 1 deletions
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 ();