Catch and print lexer errors