Thanks for this library, its the only one I've found with useful, descriptive error handling besides the DOMParser.
Would it be possible to extend the error object to break down the message a bit more? What I have in mind is to go from this:
Unclosed start tag for element `text` (line 1, column 243) iddle text-anchor="middle" font-size="200px" fill= ^
To this:
{
errorCode: 0,
message: Unclosed start tag for element,
element: 'text',
line: 1,
col, 243,
snippet: `middle text-anchor="middle" font-size="200px" fill=`
}
I know some of those entries are already in the object, which is great. Having the extra ones, like errorCode, message and element or similar would help with UI work.
Thanks for this library, its the only one I've found with useful, descriptive error handling besides the DOMParser.
Would it be possible to extend the error object to break down the message a bit more? What I have in mind is to go from this:
To this:
I know some of those entries are already in the object, which is great. Having the extra ones, like
errorCode,messageandelementor similar would help with UI work.