reset errorflag after reporting the error