vmcli: return after error in break

This commit is contained in:
Evgenii Stratonikov 2020-12-01 18:30:19 +03:00 committed by Roman Khimov
parent 5d6065c3ee
commit 0510d1e6c1

View file

@ -229,6 +229,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 {