vmcli: return after error in break
This commit is contained in:
parent
d7ffa89811
commit
bea5125d42
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue