check for parse errors and print them