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 <me@jedevc.com>
pull/1745/head
Justin Chadwell 2 years ago
parent 48b733d6da
commit e4ff82f864

@ -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 == "" {

Loading…
Cancel
Save