Fix #8100
Bug fixed : if hitting return instead of filling with a valid value, the CLI crashed (line 796) Change return err by continue to ask a valid value again
This commit is contained in:
parent
6d32a2f299
commit
78817bd001
@ -801,10 +801,10 @@ uiLoop:
|
||||
continue
|
||||
}
|
||||
|
||||
dealCount, err = strconv.ParseInt(string(dealcStr), 10, 64)
|
||||
dealCount, err = strconv.ParseInt(string(dealcStr), 10, 64)
|
||||
|
||||
if err != nil {
|
||||
printErr(xerrors.Errorf("reading deal count: invalid number"))
|
||||
printErr(xerrors.Errorf("reading deal count: invalid number")) // TO DO : Use 1 as default value for number of deals ?
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user