JeroenDeDauw / ParamProcessor

Declarative parameter processing library
https://entropywins.wtf
Other
20 stars 4 forks source link

Clear errors before processing #25

Closed mwjames closed 7 years ago

mwjames commented 7 years ago

If the Processor instance is reused then ensure that errors from a previous processing are cleared. The issue came to light using #info [0] which internally relies on the ParamProcessor.

[0] https://sandbox.semantic-mediawiki.org/wiki/ParamProcessorInstanceError

JeroenDeDauw commented 7 years ago

Awesome, thanks! I'll try to add a test and release this soon.

JeroenDeDauw commented 7 years ago

Actually I think this in part is an issue with ParserHooks: https://github.com/JeroenDeDauw/ParserHooks/issues/17

Though what you did here will already mitigate the concrete problem