Catch and return lexer errors