Open alexey-baranov opened 6 years ago
Yes, I also find it strange, why stop() cause this error? This is not normal behavior I think.
I will try to fix this bug and create PR
Looks like this is how libexpat works, it notify about stopping via error interface function. So best way is to just ignore this error in your handler. However, it's strange and should be described in docs at least...
Also, I suspect that standard tools like pipeline
or finished
from the mississippi toolkit may fail even though there isn't any error. I would consider not emitting this event as an error.
hello! hire is my simple code. it fails with error string "parser suspended"
output
as you can see after first
parser.stop()
error thrown