mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-11 11:20:38 +00:00
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)
|
v := getVMFromContext(c)
|
||||||
if len(c.Args) != 1 {
|
if len(c.Args) != 1 {
|
||||||
c.Err(errors.New("missing parameter <ip>"))
|
c.Err(errors.New("missing parameter <ip>"))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
n, err := strconv.Atoi(c.Args[0])
|
n, err := strconv.Atoi(c.Args[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue