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