Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit b05338f

Browse files
committed
[FAB-8571] timeout error message refactoring
Change-Id: Ib337f16bc7598f6cb3b270faf9a9bf99eb48936a Signed-off-by: Sudesh Shetty <sudesh.shetty@securekey.com>
1 parent 523348b commit b05338f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/client/channel/chclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (cc *Client) InvokeHandler(handler invoke.Handler, request Request, options
122122
return Response(requestContext.Response), requestContext.Error
123123
case <-reqCtx.Done():
124124
return Response{}, status.New(status.ClientStatus, status.Timeout.ToInt32(),
125-
"request timed out", nil)
125+
"request timed out or been cancelled", nil)
126126
}
127127
}
128128

pkg/client/resmgmt/resmgmt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ func (rc *Client) sendCCProposal(reqCtx reqContext.Context, ccProposalType chain
604604
}
605605
return status.New(status.EventServerStatus, int32(txStatus.TxValidationCode), "instantiateOrUpgradeCC failed", nil)
606606
case <-reqCtx.Done():
607-
return errors.New("instantiateOrUpgradeCC timeout")
607+
return errors.New("instantiateOrUpgradeCC timed out or been cancelled")
608608
}
609609

610610
}

0 commit comments

Comments
 (0)