parser: improve error reporting a little bit.