diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-04-10 14:30:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-04-10 14:30:15 +0100 |
| commit | 9aad8cbe0f5bf83a67883d4ab3aafee91b32d100 (patch) | |
| tree | a5b8671035739f61d1f96e2475d964da5d233171 /src/dcp.cc | |
| parent | f353b192693291e842e297118d5899c63a5a8e22 (diff) | |
Remove picture_asset.h; some better error messages.
Diffstat (limited to 'src/dcp.cc')
| -rw-r--r-- | src/dcp.cc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |
