Fix a subtle problem with mislogging of a parse failure.