if !failedFound {
            if i := strings.Index(text, failedSub); i != -1 {
                failedFound = true
                s := strings.TrimSpace(text[i+len(failedSub):])
                if failed, err = strconv.ParseInt(s, 10, 64); err != nil {