vmcli: return after error in break

This commit is contained in:
Evgenii Stratonikov 2020-12-01 18:30:19 +03:00
parent d7ffa89811
commit bea5125d42

View file

@ -242,6 +242,7 @@ func handleBreak(c *ishell.Context) {
v := getVMFromContext(c)
if len(c.Args) != 1 {
c.Err(errors.New("missing parameter <ip>"))
return
}
n, err := strconv.Atoi(c.Args[0])
if err != nil {