From e4ff82f8648e1fccde757b810264df39b330d394 Mon Sep 17 00:00:00 2001 From: Justin Chadwell Date: Tue, 18 Apr 2023 10:48:03 +0100 Subject: [PATCH] monitor: update exec failure message when no args are passed "exec" does not take a server name, so we can rename the error check here. Signed-off-by: Justin Chadwell --- monitor/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/monitor.go b/monitor/monitor.go index 40807759..4ca9954a 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -248,7 +248,7 @@ func RunMonitor(ctx context.Context, curRef string, options *controllerapi.Build fmt.Fprintf(stdout, "Attached to process %q. Press Ctrl-a-c to switch to the new container\n", id) case "exec": if len(args) < 2 { - fmt.Println("exec: server name must be passed") + fmt.Println("attach: command must be passed") continue } if curRef == "" {