improve formatting of error message during xml loading if document is not well formed

This commit is contained in:
Dane Springmeyer 2009-09-28 17:35:50 +00:00
parent 4367b813a8
commit 5fccc3ae62

View file

@ -89,8 +89,8 @@ namespace mapnik
config_error ex( msg ); config_error ex( msg );
os.str(""); os.str("");
os << "in file '" << error->file << "' at line " os << "(encountered in file '" << error->file << "' at line "
<< error->line; << error->line << ")";
ex.append_context( os.str() ); ex.append_context( os.str() );