check for staus failed and return error
This commit is contained in:
parent
211319238e
commit
7e578f80bd
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ func (m *Monitor) JobUpdate(updateKey aurora.JobUpdateKey, interval int, timeout
|
||||||
if status == aurora.JobUpdateStatus_ROLLED_FORWARD {
|
if status == aurora.JobUpdateStatus_ROLLED_FORWARD {
|
||||||
fmt.Println("Update succeded")
|
fmt.Println("Update succeded")
|
||||||
return true, nil
|
return true, nil
|
||||||
} else {
|
} else if status == aurora.JobUpdateStatus_FAILED {
|
||||||
fmt.Println("Update failed")
|
fmt.Println("Update failed")
|
||||||
return false, nil
|
return false, errors.New("update failed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue