From bea5125d423714231181848aaf44f227bd63fec6 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 1 Dec 2020 18:30:19 +0300 Subject: [PATCH] vmcli: return after error in `break` --- pkg/vm/cli/cli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/vm/cli/cli.go b/pkg/vm/cli/cli.go index db3a7b894..4fc56439d 100644 --- a/pkg/vm/cli/cli.go +++ b/pkg/vm/cli/cli.go @@ -242,6 +242,7 @@ func handleBreak(c *ishell.Context) { v := getVMFromContext(c) if len(c.Args) != 1 { c.Err(errors.New("missing parameter ")) + return } n, err := strconv.Atoi(c.Args[0]) if err != nil {