cli: Don't panic with no providers in client retrieve

This commit is contained in:
Łukasz Magiera 2022-08-29 16:36:05 +02:00
parent 78cde92999
commit 36ae2086ab

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")})