check correctness of errors before updating them so we don't get bogus errors added