// Given a TRS task list, check all status codes. If any of them were
// considered failures, return an error message.
Given a TRS task list, check all status codes. If any of them were
considered failures, return an error message.
// Given a TRS task list check all status codes . If any of them were // considered failures return an error message .
func checkStatusCodes(taskList []trsapi.HttpTask) error {
	for ii := 0; ii < len(taskList); ii++ {
		ecode := getStatusCode(&taskList[ii])
		if !statusCodeOK(ecode) {
			return fmt.Errorf("Bad return code from '%s': %d - %s",
				urlFromReq(taskList[ii].Request), ecode, http.StatusText(ecode))
		}
	}
	return nil
}
func checkStatusCodes ( taskList [ ] trsapi . HttpTask ) error { for ii := 0 ; ii < len ( taskList ) ; ii ++ { ecode := getStatusCode ( & taskList [ ii ] ) if ! statusCodeOK ( ecode ) { return fmt . Errorf ( " " , urlFromReq ( taskList [ ii ] . Request ) , ecode , http . StatusText ( ecode ) ) } } return nil }
Given a TRS task list, check all status codes.
Given a TRS task list check all status codes .