From 7e578f80bd4a73edbda8d8cebba7b5bc400b1c40 Mon Sep 17 00:00:00 2001 From: Mothiki Date: Mon, 21 Aug 2017 19:45:36 -0700 Subject: [PATCH] check for staus failed and return error --- monitors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") } }