[proxy] return errors when attaching new containers
I had implemented this with a promise, but was informed that as waitForStart is only called once, we are safe to just put the error into the channel.
This commit is contained in:
1 parent
720862dafb
commit
63339c026d
3 files changed
+27
-14
No files matched your search
@@ -53,6 +53,5 @@ func (i *startContainerInterceptor) InterceptResponse(r *http.Response) error {
|
||||
if r.StatusCode < 200 || r.StatusCode >= 300 { // Docker didn't do the start
|
||||
return nil
|
||||
}
|
||||
i.proxy.waitForStart(r.Request)
|
||||
return nil
|
||||
return i.proxy.waitForStart(r.Request)
|
||||
}
|
||||
Reference in new issue
Block a user