diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-07 21:18:10 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-07 21:18:10 +0000 |
| commit | 2c5088d365b16f567ac0731ca10cef5adf2718fa (patch) | |
| tree | c1029e31c99e1cd41e8b5e526cf704f1f19b5a87 /src/tools/dcpomatic_kdm_cli.cc | |
| parent | b6a2b6d23998bc3acd2a91eafcfda75778e3d6bc (diff) | |
Nicer error when trying to make a KDM for an unencrypted project.
Diffstat (limited to 'src/tools/dcpomatic_kdm_cli.cc')
| -rw-r--r-- | src/tools/dcpomatic_kdm_cli.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_kdm_cli.cc b/src/tools/dcpomatic_kdm_cli.cc index ece45c73e..b258d68f1 100644 --- a/src/tools/dcpomatic_kdm_cli.cc +++ b/src/tools/dcpomatic_kdm_cli.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2017 Carl Hetherington <cth@carlh.net> + Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -42,6 +42,7 @@ using std::cout; using std::cerr; using std::list; using std::vector; +using std::runtime_error; using boost::shared_ptr; using boost::optional; using boost::bind; @@ -238,6 +239,9 @@ from_film ( } catch (KDMError& e) { cerr << program_name << ": " << e.what() << "\n"; exit (EXIT_FAILURE); + } catch (runtime_error& e) { + cerr << program_name << ": " << e.what() << "\n"; + exit (EXIT_FAILURE); } } |
