a little cleaner error message in parser_helper