Executor API panics if there is err in getting function from backends (#407)

This commit is contained in:
Vishal
2017-11-22 14:06:36 -08:00
committed by Soam Vasani
parent fa556b1212
commit 930accbe95
+3
View File
@@ -73,6 +73,9 @@ func (executor *Executor) getServiceForFunction(m *metav1.ObjectMeta) (string, e
respChan: respChan,
}
resp := <-respChan
if resp.err != nil {
return "", resp.err
}
return resp.funcSvc.Address, resp.err
}