reset ERRORS after each file. fixes https://github.com/lessthan3/packages/issues/4571