Tried to put some polish on the handling of parse errors, though it
turned out to be mostly futile.