edemaine / svgtiler

Tool for drawing diagrams on a grid, combining grids of SVGs into a big SVG figure
MIT License
58 stars 6 forks source link

More feedback on XML parse errors #21

Closed edemaine closed 5 years ago

edemaine commented 7 years ago

When I make a typo in SVG (e.g. generated in CoffeeScript) I get errors of this form:

[xmldom warning]        attribute space is required"x2"!!
@#[line:2,col:3]
[xmldom warning]        attribute value must after "="
@#[line:2,col:3]
[xmldom error]  element parse error: Error: invalid attribute:20
@#[line:2,col:3]

This is somewhat helpful, but it's hard to debug without knowing what SVG it's failing to parse. Need to catch and output.