report the map/xml name when an error is encountered when loading a map

This commit is contained in:
Dane Springmeyer 2010-01-25 19:10:01 +00:00
parent 9221d79a82
commit 0fbd46a045

View file

@ -530,7 +530,7 @@ namespace mapnik
} catch (const config_error & ex) {
if ( ! name.empty() ) {
ex.append_context(string("(encountered during parsing of layer '") + name + "')");
ex.append_context(std::string("(encountered during parsing of layer '") + name + "' in map" + filename_ + ")");
}
throw;
}