Skip to content

Commit

Permalink
fix httpget msg (#22)
Browse files Browse the repository at this point in the history
* feat(main): add latest image

* feat(main): fix httpget
  • Loading branch information
cuisongliu authored Jan 14, 2022
1 parent f95c409 commit cb0c056
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/run_probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ func (w *work) doProbe() (keepGoing bool) {
// Success or failure is below threshold - leave the probe state unchanged.
return true
}

if err != nil {
w.err = err
} else if len(output) != 0 {
} else if result == probe.Failure && len(output) != 0 {
w.err = errors.New(output)
}
return false
Expand Down

0 comments on commit cb0c056

Please sign in to comment.