Make an error a little more detailed.
[libdcp.git] / 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: