Skip to content

Commit

Permalink
Improve error message when maxPrice is too low
Browse files Browse the repository at this point in the history
This also happens when maxPrice is not set and it deafults to 0
  • Loading branch information
2color committed Jun 7, 2022
1 parent 27eaeba commit c1a7f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/client_retr.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func retrieve(ctx context.Context, cctx *cli.Context, fapi lapi.FullNode, sel *l
}

if offer.MinPrice.GreaterThan(big.Int(maxPrice)) {
return nil, xerrors.Errorf("failed to find offer satisfying maxPrice: %s", maxPrice)
return nil, xerrors.Errorf("failed to find offer satisfying maxPrice: %s. Try increasing maxPrice", maxPrice)
}

o := offer.Order(payer)
Expand Down

0 comments on commit c1a7f62

Please sign in to comment.