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:
parent
27eaebad7e
commit
c1a7f6292e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user