summaryrefslogtreecommitdiff
path: root/src/dcp.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-04-10 14:30:15 +0100
committerCarl Hetherington <cth@carlh.net>2014-04-10 14:30:15 +0100
commit9aad8cbe0f5bf83a67883d4ab3aafee91b32d100 (patch)
treea5b8671035739f61d1f96e2475d964da5d233171 /src/dcp.cc
parentf353b192693291e842e297118d5899c63a5a8e22 (diff)
Remove picture_asset.h; some better error messages.
Diffstat (limited to 'src/dcp.cc')
-rw-r--r--src/dcp.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index 817cf36e..d383eeac 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -54,6 +54,7 @@ using std::stringstream;
using std::ostream;
using std::make_pair;
using std::map;
+using std::cout;
using boost::shared_ptr;
using boost::lexical_cast;
using namespace dcp;
@@ -76,7 +77,7 @@ DCP::read ()
} else if (boost::filesystem::exists (_directory / "ASSETMAP.xml")) {
asset_map_file = _directory / "ASSETMAP.xml";
} else {
- boost::throw_exception (DCPReadError ("could not find AssetMap file"));
+ boost::throw_exception (DCPReadError (String::compose ("could not find AssetMap file `%1'", asset_map_file.string())));
}
cxml::Document asset_map ("AssetMap");
@@ -94,7 +95,6 @@ DCP::read ()
}
/* Read all the assets from the asset map */
-
for (map<string, boost::filesystem::path>::const_iterator i = paths.begin(); i != paths.end(); ++i) {
boost::filesystem::path path = _directory / i->second;
if (boost::algorithm::ends_with (path.string(), ".xml")) {
@@ -149,7 +149,7 @@ bool
DCP::equals (DCP const & other, EqualityOptions opt, boost::function<void (NoteType, string)> note) const
{
if (_assets.size() != other._assets.size()) {
- note (ERROR, "Asset counts differ");
+ note (ERROR, String::compose ("Asset counts differ: %1 vs %2", _assets.size(), other._assets.size()));
return false;
}