Clear the error.flag returned by hasError().