Throw an exception on an unknown asset type. pkl
authorCarl Hetherington <cth@carlh.net>
Fri, 17 Aug 2018 08:40:16 +0000 (09:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 17 Aug 2018 08:40:16 +0000 (09:40 +0100)
src/dcp.cc

index 58195d4b44d05c262256182c1f7a846ff1c2d221..58d05651942cde1c688aadaccb3114e67b9e5016 100644 (file)
@@ -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));
                }
        }