diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_cli.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index be4d3f513..1293eab0f 100644 --- a/src/tools/dcpomatic_cli.cc +++ b/src/tools/dcpomatic_cli.cc @@ -47,6 +47,7 @@ using std::cout; using std::dynamic_pointer_cast; using std::list; using std::pair; +using std::runtime_error; using std::setw; using std::shared_ptr; using std::string; @@ -403,7 +404,12 @@ main (int argc, char* argv[]) ); JobManager::instance()->add (job); } else { - film->make_dcp (behaviour); + try { + film->make_dcp (behaviour); + } catch (runtime_error& e) { + std::cerr << "Could not make DCP: " << e.what() << "\n"; + exit(EXIT_FAILURE); + } } bool const error = show_jobs_on_console (progress); |
