diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-11 09:51:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-11 09:51:06 +0000 |
| commit | b731111427d94da2e3e231892c6e6edf3dd3f40f (patch) | |
| tree | f507a21c23409ef8f0a6fc6cbcb31ebf3813ee00 | |
| parent | 24ef3197488f259f2ec62aefd4ca15bac6797454 (diff) | |
Catch std::exception, not just KDMError, from KDM creation.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | src/tools/dcpomatic.cc | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -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 (); |
