Skip to content
This repository

Improve error/warning output when loading XML #1441

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

1 participant

Dane Springmeyer
Dane Springmeyer
Owner

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
Dane Springmeyer springmeyer closed this in 03860b1 August 23, 2012
Dane Springmeyer
Owner

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'
Colin Rundel rundel referenced this issue from a commit August 27, 2012
Commit has since been removed from the repository and is no longer available.
Colin Rundel rundel referenced this issue from a commit August 27, 2012
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.