summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-10-22 18:28:22 +0300
committerWolfy-J <[email protected]>2019-10-22 18:28:22 +0300
commit697516496ad84daf760b1a10ce6c3af1f67ad75f (patch)
tree3db51a404f2f8cbd43dd32133e8cea671de0b60a /service/container.go
parenta72ccd1b6247a25c90fad317d98c884f3869b623 (diff)
- bugfix: do not halt stop sequence in case of service error
Diffstat (limited to 'service/container.go')
-rw-r--r--service/container.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/container.go b/service/container.go
index 1e2e1d51..a21b49b4 100644
--- a/service/container.go
+++ b/service/container.go
@@ -180,6 +180,7 @@ func (c *container) Serve() error {
}(e)
}
+ var serveErr error
for i := 0; i < numServing; i++ {
result := <-done
@@ -191,11 +192,11 @@ func (c *container) Serve() error {
// found an error in one of the services, stopping the rest of running services.
if err := result.(error); err != nil {
c.Stop()
- return err
+ serveErr = err
}
}
- return nil
+ return serveErr
}
// Detach sends stop command to all running services.