Make sure we parse the whole line when an error occurs.

This fixes a problem wherein ends of lines were dropped
after errors.