Make an error a little more detailed.
authorCarl Hetherington <cth@carlh.net>
Fri, 3 Jun 2022 13:11:50 +0000 (15:11 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 16 Jun 2022 13:47:06 +0000 (15:47 +0200)
src/asset_factory.cc

index bab656782bddae21dca3ab88d23441df4666c56f..833d3d2befe1d28bab917114de965df29391ee19 100644 (file)
@@ -62,7 +62,7 @@ dcp::asset_factory (boost::filesystem::path path, bool ignore_incorrect_picture_
 
        ASDCP::EssenceType_t type;
        if (ASDCP::EssenceType (path.string().c_str(), type) != ASDCP::RESULT_OK) {
-               throw ReadError ("Could not find essence type");
+               throw ReadError("Could not find essence type", path.string());
        }
        switch (type) {
        case ASDCP::ESS_UNKNOWN: