From: Carl Hetherington Date: Wed, 24 May 2023 21:46:57 +0000 (+0200) Subject: More detailed error message. X-Git-Tag: v1.8.70~3 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=b584c2943634894357891eab6c34efdfa8cfc7c1;p=libdcp.git More detailed error message. --- diff --git a/src/asset_factory.cc b/src/asset_factory.cc index 833d3d2b..2ab79899 100644 --- a/src/asset_factory.cc +++ b/src/asset_factory.cc @@ -61,8 +61,9 @@ 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", path.string()); + auto const result = ASDCP::EssenceType(path.string().c_str(), type); + if (result != ASDCP::RESULT_OK) { + throw ReadError(String::compose("Could not find essence type (%1)", result.Message()), path.string()); } switch (type) { case ASDCP::ESS_UNKNOWN: