[Bug 337557] error reporting of scanner