report the map/xml name when an error is encountered when loading a map
This commit is contained in:
parent
9221d79a82
commit
0fbd46a045
1 changed files with 1 additions and 1 deletions
|
@ -530,7 +530,7 @@ namespace mapnik
|
||||||
|
|
||||||
} catch (const config_error & ex) {
|
} catch (const config_error & ex) {
|
||||||
if ( ! name.empty() ) {
|
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;
|
throw;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue