ioreg::parser: Improve error handler