diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-02-25 00:39:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-02-25 00:39:01 +0000 |
| commit | d4b350cc524543b8142ac803232b31af751885e2 (patch) | |
| tree | 45a79c6053f536596a9712c7ae01660f7df6563d /src/dcp.cc | |
| parent | 95c6dd4301da219834a7c60fec3fa92c1ec23265 (diff) | |
Throw exceptions with badly-formed XML when reading a DCP; preserve detail in DCPReadError.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -169,7 +169,7 @@ DCP::read (bool keep_going, ReadErrors* errors, bool ignore_incorrect_picture_mx p->parse_file (path.string()); } catch (std::exception& e) { delete p; - continue; + throw DCPReadError(String::compose("XML error in %1", path.string()), e.what()); } string const root = p->get_document()->get_root_node()->get_name (); |
