fix error handling
This commit is contained in:
parent
8733cea902
commit
182da9d4ef
@ -1204,10 +1204,10 @@ var clientRetrieveCmd = &cli.Command{
|
||||
if !ok {
|
||||
if evt.Status == retrievalmarket.DealStatusCompleted {
|
||||
afmt.Println("Success")
|
||||
return nil
|
||||
} else {
|
||||
afmt.Printf("saw final deal state %s instead of expected success state DealStatusCompleted", retrievalmarket.DealStatuses[evt.Status])
|
||||
}
|
||||
|
||||
return xerrors.Errorf("saw final deal state %s instead of expected state DealStatusCompleted", retrievalmarket.DealStatuses[evt.Status])
|
||||
return nil
|
||||
}
|
||||
|
||||
case <-ctx.Done():
|
||||
|
Loading…
Reference in New Issue
Block a user