Improve error message when maxPrice is too low

This also happens when maxPrice is not set and it deafults to 0
This commit is contained in:
Daniel N 2022-06-07 11:10:20 -05:00
parent 27eaebad7e
commit c1a7f6292e

View File

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