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
+1 -1
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)