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:
Florian Ruen 2022-02-17 17:57:42 +01:00 committed by GitHub
parent 6d32a2f299
commit 78817bd001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}