cli: Don't panic with no providers in client retrieve
This commit is contained in:
parent
78cde92999
commit
36ae2086ab
@ -315,6 +315,9 @@ Examples:
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if eref == nil {
|
||||||
|
return xerrors.Errorf("failed to find providers")
|
||||||
|
}
|
||||||
|
|
||||||
if s != nil {
|
if s != nil {
|
||||||
eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s, ExportMerkleProof: cctx.Bool("car-export-merkle-proof")})
|
eref.DAGs = append(eref.DAGs, lapi.DagSpec{DataSelector: s, ExportMerkleProof: cctx.Bool("car-export-merkle-proof")})
|
||||||
|
Loading…
Reference in New Issue
Block a user