Merge pull request #8818 from 2color/improve-retrieval-error
chore: improve error message when maxPrice is too low
This commit is contained in:
commit
16d6e0eeb5
@ -145,7 +145,7 @@ func retrieve(ctx context.Context, cctx *cli.Context, fapi lapi.FullNode, sel *l
|
|||||||
}
|
}
|
||||||
|
|
||||||
if offer.MinPrice.GreaterThan(big.Int(maxPrice)) {
|
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)
|
o := offer.Order(payer)
|
||||||
|
Loading…
Reference in New Issue
Block a user