accumulate errornum correctly