Skip to content

Commit

Permalink
Break out of retrieval if provider cancels
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Jun 23, 2022
1 parent a80da7f commit c10c898
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/client_retr.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ func retrieve(ctx context.Context, cctx *cli.Context, fapi lapi.FullNode, sel *l
break readEvents
case retrievalmarket.DealStatusRejected:
return nil, xerrors.Errorf("Retrieval Proposal Rejected: %s", evt.Message)
case retrievalmarket.DealStatusCancelled:
return nil, xerrors.Errorf("Retrieval Proposal Cancelled: %s", evt.Message)
case
retrievalmarket.DealStatusDealNotFound,
retrievalmarket.DealStatusErrored:
Expand Down

0 comments on commit c10c898

Please sign in to comment.