Intercept and report lexer errors as well.