geometry
geometry copied to clipboard
Tweaked exception text in case problem is with invalid whitespace
Clarify exception text in case the parsing error might be the result of the string including tab ('\t') or newline ('\r' or '\n') character. Suggestion for #703
In my opinion, current exception text can be hard to interpret in this case. Since looking at the output, all whitespace looks similar, it might not be obvious which character is problematic. E.g.
Too many tokens at '
' in 'LINESTRING(1.0 2.0, 2.0 1.0)
'
or especially:
bad lexical cast: source type value could not be interpreted as target at '
' in 'LINESTRING(1.0 2.0,
2.0 1.0)'
since this looks like a regular line break in my terminal.