Improve error/warning output when loading XML #1441

Closed
springmeyer opened this Issue Aug 23, 2012 · 1 comment

Projects

None yet

1 participant

@springmeyer
Member

In Mapnik 2.1 @herm vastly improved the XML error output. Currently we get something like:

RuntimeError: map.xml line 13 in node MarkersSymbolizer: marker-file could not be found: '...' in MarkersSymbolizer in style '1'

We can improve this:

  • Actual error should be first, meta info after
  • We should avoid the duplication of MarkersSymbolizer
  • We should quote the map.xml to enhance readibility
@springmeyer springmeyer pushed a commit that closed this issue Aug 23, 2012
Dane Springmeyer improve error messages for exceptions thrown in symbolizers during lo…
…ad_map - closes #1441
03860b1
@springmeyer
Member

now will get something like:

RuntimeError: Failed to parse transform: 'scale(foo foo foo)' in style '1' in MarkersSymbolizer at line 13 of 'tests/data/good_maps/markers_symbolizer_lines_file.xml'
@springmeyer springmeyer pushed a commit that referenced this issue Aug 23, 2012
Dane Springmeyer further improve the reporting of unprocessed nodes and attributes - r…
…efs #1441
1ca4bcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment