summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-08-17 09:40:16 +0100
committerCarl Hetherington <cth@carlh.net>2018-08-17 09:40:16 +0100
commitf1f6fd9f2ac4894217800c8eca17937c14f648ae (patch)
tree917d08a703f393b36d1ccbeac87146f68e494be8
parent25641872e0876a11714af0c91263fcf38cbcb93e (diff)
Throw an exception on an unknown asset type.pkl
-rw-r--r--src/dcp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 58195d4b..58d05651 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -261,6 +261,8 @@ DCP::read (bool keep_going, ReadErrors* errors, bool ignore_incorrect_picture_mx
}
} else if (pkl_type == FontAsset::static_pkl_type(*_standard)) {
other_assets.push_back (shared_ptr<FontAsset> (new FontAsset (i->first, path)));
+ } else {
+ throw DCPReadError (String::compose("Unknown asset type %1 in PKL", pkl_type));
}
}