From 2c5088d365b16f567ac0731ca10cef5adf2718fa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 7 Dec 2018 21:18:10 +0000 Subject: [PATCH] Nicer error when trying to make a KDM for an unencrypted project. --- src/tools/dcpomatic_kdm_cli.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + Copyright (C) 2013-2018 Carl Hetherington 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); } } -- 2.30.2