diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-24 23:46:57 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-24 23:46:57 +0200 |
| commit | b584c2943634894357891eab6c34efdfa8cfc7c1 (patch) | |
| tree | e542db7bf19e494c4ab6210946b57c9d01dca156 /src | |
| parent | 11b1c2f72e99590d8c3d1fc1cd2c2a1a3d52932d (diff) | |
More detailed error message.
Diffstat (limited to 'src')
| -rw-r--r-- | src/asset_factory.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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: |
