Merge pull request #9232 from filecoin-project/fix/gatewaytest-panic

cli: Don't panic with no providers in client retrieve
This commit is contained in:
Łukasz Magiera 2022-08-29 17:27:36 +02:00 committed by GitHub
commit 2532300156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,6 +315,9 @@ Examples:
if err != nil {
return err
}
if eref == nil {
return xerrors.Errorf("failed to find providers")
}
if s != nil {
eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s, ExportMerkleProof: cctx.Bool("car-export-merkle-proof")})