Reset lastConsumeError after obtaining it, to reduce the chance of 'sticky' exceptions
Fixed line endings