Merge pull request #8818 from 2color/improve-retrieval-error

chore: improve error message when maxPrice is too low
This commit is contained in:
Łukasz Magiera 2022-06-09 15:47:09 +02:00 committed by GitHub
commit 16d6e0eeb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)