summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-18 00:20:17 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-18 23:30:48 +0100
commit4078aaae757db466d727c667dd9197b56d6b3f58 (patch)
tree47b733b51d838a7da708b9807478de1e166a5b4f /src/dcp.cc
parentcf4e4272f72346c39964b128f78b2297f04dba55 (diff)
Improve errors when verifying a non-DCP directory.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index df1d531b..20ff82f8 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -112,7 +112,7 @@ DCP::read (vector<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_m
} else if (boost::filesystem::exists (_directory / "ASSETMAP.xml")) {
_asset_map = _directory / "ASSETMAP.xml";
} else {
- boost::throw_exception (ReadError(String::compose("Could not find ASSETMAP nor ASSETMAP.xml in '%1'", _directory.string())));
+ boost::throw_exception (MissingAssetmapError(_directory));
}
cxml::Document asset_map ("AssetMap");