diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-17 09:40:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-17 09:40:16 +0100 |
| commit | f1f6fd9f2ac4894217800c8eca17937c14f648ae (patch) | |
| tree | 917d08a703f393b36d1ccbeac87146f68e494be8 | |
| parent | 25641872e0876a11714af0c91263fcf38cbcb93e (diff) | |
Throw an exception on an unknown asset type.pkl
| -rw-r--r-- | src/dcp.cc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); } } |
