diff --git a/cli/client_retr.go b/cli/client_retr.go index b58da2390..f32e5d4e4 100644 --- a/cli/client_retr.go +++ b/cli/client_retr.go @@ -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")})