Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Improve error/warning output when loading XML #1441

Closed
springmeyer opened this Issue · 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
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
Commit has since been removed from the repository and is no longer available.
Colin Rundel rundel referenced this issue from a commit
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.