summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-25 00:39:01 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-25 00:39:01 +0000
commitd4b350cc524543b8142ac803232b31af751885e2 (patch)
tree45a79c6053f536596a9712c7ae01660f7df6563d /src/dcp.cc
parent95c6dd4301da219834a7c60fec3fa92c1ec23265 (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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index fc02fe9d..7b4f9bda 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -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 ();