[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:
Paul Bellamy committed 2015-10-21 13:05:05 +01:00
1 parent 720862dafb
commit 63339c026d
3 files changed
+27 -14

No files matched your search

+1 -2
View File
@@ -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)
}