diff options
Diffstat (limited to 'internal/cli/serve/command.go')
-rw-r--r-- | internal/cli/serve/command.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cli/serve/command.go b/internal/cli/serve/command.go index 70b8b995..99c339dd 100644 --- a/internal/cli/serve/command.go +++ b/internal/cli/serve/command.go @@ -96,12 +96,12 @@ func NewCommand(override *[]string, cfgFile *string, silent *bool) *cobra.Comman for { select { case e := <-errCh: - fmt.Printf("error occurred: %v, plugin: %s, stopping execution\n", e.Error, e.VertexID) + return fmt.Errorf("error: %w\nplugin: %s", e.Error, e.VertexID) case <-stop: // stop the container after first signal fmt.Printf("stop signal received, grace timeout is: %d seconds\n", uint64(containerCfg.GracePeriod.Seconds())) if err = endureContainer.Stop(); err != nil { - fmt.Printf("error occurred during the stopping container: %v\n", err) + return fmt.Errorf("error: %w", err) } return nil |