summaryrefslogtreecommitdiff
path: root/internal/cli/serve/command.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-05-12 17:06:37 +0200
committerValery Piashchynski <[email protected]>2022-05-12 17:06:37 +0200
commit53bbf3e29a25a4751a7d31ce4b31f4d724a244c4 (patch)
tree0858d722f11f8e871749203cbf24f536eb4c462e /internal/cli/serve/command.go
parent0b823ea7271645bb214c8a05ee02cb3d4b994872 (diff)
deps: update dependencies
Diffstat (limited to 'internal/cli/serve/command.go')
-rw-r--r--internal/cli/serve/command.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/cli/serve/command.go b/internal/cli/serve/command.go
index 559868d5..7f25551b 100644
--- a/internal/cli/serve/command.go
+++ b/internal/cli/serve/command.go
@@ -98,9 +98,8 @@ func NewCommand(override *[]string, cfgFile *string, silent *bool) *cobra.Comman
case e := <-errCh:
fmt.Printf("error occurred: %v, plugin: %s\n", e.Error, e.VertexID)
- // return error, container already stopped internally
- if !containerCfg.RetryOnFail {
- return errors.E(op, e.Error)
+ if err = endureContainer.Stop(); err != nil {
+ fmt.Printf("error occurred during the stopping container: %v\n", err)
}
case <-stop: // stop the container after first signal