Parse and print error messages