diff --git a/cli/client.go b/cli/client.go index 634bd18e5..e9a25f520 100644 --- a/cli/client.go +++ b/cli/client.go @@ -795,14 +795,17 @@ uiLoop: case "find-count": afmt.Print("Deals to make (1): ") dealcStr, _, err := rl.ReadLine() + if err != nil { printErr(xerrors.Errorf("reading deal count: %w", err)) continue } dealCount, err = strconv.ParseInt(string(dealcStr), 10, 64) + if err != nil { - return err + printErr(xerrors.Errorf("reading deal count: invalid number")) + continue } color.Blue(".. Picking miners")