diff --git a/monitors.go b/monitors.go index 96face0..9b685df 100644 --- a/monitors.go +++ b/monitors.go @@ -80,9 +80,9 @@ func (m *Monitor) JobUpdate(updateKey aurora.JobUpdateKey, interval int, timeout if status == aurora.JobUpdateStatus_ROLLED_FORWARD { fmt.Println("Update succeded") return true, nil - } else { + } else if status == aurora.JobUpdateStatus_FAILED { fmt.Println("Update failed") - return false, nil + return false, errors.New("update failed") } }