*/
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: