From 5f500d3c0630b9e488b8901f16281d0c78de3d5d Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Fri, 8 Apr 2022 20:52:32 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Martin --- ocis/pkg/command/kill.go | 2 +- ocis/pkg/command/list.go | 2 +- ocis/pkg/command/run.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ocis/pkg/command/kill.go b/ocis/pkg/command/kill.go index 03f2d52a3..51b8b4261 100644 --- a/ocis/pkg/command/kill.go +++ b/ocis/pkg/command/kill.go @@ -35,7 +35,7 @@ func KillCommand(cfg *config.Config) *cli.Command { Action: func(c *cli.Context) error { client, err := rpc.DialHTTP("tcp", net.JoinHostPort(cfg.Runtime.Host, cfg.Runtime.Port)) if err != nil { - log.Fatalf("Failed to connect to the runtime. Is the runtime running and did you configure the right runtime address (\"%s\")", cfg.Runtime.Host+":"+cfg.Runtime.Port) + log.Fatalf("Failed to connect to the runtime. Has the runtime been started and did you configure the right runtime address (\"%s\")", cfg.Runtime.Host+":"+cfg.Runtime.Port) } var arg1 int diff --git a/ocis/pkg/command/list.go b/ocis/pkg/command/list.go index a4223f480..64a3f6d14 100644 --- a/ocis/pkg/command/list.go +++ b/ocis/pkg/command/list.go @@ -34,7 +34,7 @@ func ListCommand(cfg *config.Config) *cli.Command { Action: func(c *cli.Context) error { client, err := rpc.DialHTTP("tcp", net.JoinHostPort(cfg.Runtime.Host, cfg.Runtime.Port)) if err != nil { - log.Fatalf("Failed to connect to the runtime. Is the runtime running and did you configure the right runtime address (\"%s\")", cfg.Runtime.Host+":"+cfg.Runtime.Port) + log.Fatalf("Failed to connect to the runtime. Has the runtime been started and did you configure the right runtime address (\"%s\")", cfg.Runtime.Host+":"+cfg.Runtime.Port) } var arg1 string diff --git a/ocis/pkg/command/run.go b/ocis/pkg/command/run.go index d48da6933..5259bdec5 100644 --- a/ocis/pkg/command/run.go +++ b/ocis/pkg/command/run.go @@ -36,7 +36,7 @@ func RunCommand(cfg *config.Config) *cli.Command { Action: func(c *cli.Context) error { client, err := rpc.DialHTTP("tcp", net.JoinHostPort(cfg.Runtime.Host, cfg.Runtime.Port)) if err != nil { - log.Fatalf("Failed to connect to the runtime. Is the runtime running and did you configure the right runtime address (\"%s\")", cfg.Runtime.Host+":"+cfg.Runtime.Port) + log.Fatalf("Failed to connect to the runtime. Has the runtime been started and did you configure the right runtime address (\"%s\")", cfg.Runtime.Host+":"+cfg.Runtime.Port) } var reply int