Use the base interface for the type check

This commit is contained in:
jan grant
2019-09-26 11:37:18 +01:00
parent 3cc70a932c
commit b3d0694b4f

View File

@@ -121,7 +121,7 @@ func (tr *placerTracker) RetryAllBackoff(numOfRunners int, err error) bool {
// See: runner_fninvoke.handleFnInvokeCall2
if models.IsFuncError(err) {
// We also sanity check for a 502 before returning.
w, ok := err.(models.APIErrorWrapper)
w, ok := err.(models.APIError)
if ok {
if 502 == w.Code() {
return false