Skip to content

Commit

Permalink
[FAB-8571] timeout error message refactoring
Browse files Browse the repository at this point in the history
Change-Id: Ib337f16bc7598f6cb3b270faf9a9bf99eb48936a
Signed-off-by: Sudesh Shetty <sudesh.shetty@securekey.com>
  • Loading branch information
sudeshrshetty committed Mar 15, 2018
1 parent 523348b commit b05338f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/client/channel/chclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (cc *Client) InvokeHandler(handler invoke.Handler, request Request, options
return Response(requestContext.Response), requestContext.Error
case <-reqCtx.Done():
return Response{}, status.New(status.ClientStatus, status.Timeout.ToInt32(),
"request timed out", nil)
"request timed out or been cancelled", nil)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/client/resmgmt/resmgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ func (rc *Client) sendCCProposal(reqCtx reqContext.Context, ccProposalType chain
}
return status.New(status.EventServerStatus, int32(txStatus.TxValidationCode), "instantiateOrUpgradeCC failed", nil)
case <-reqCtx.Done():
return errors.New("instantiateOrUpgradeCC timeout")
return errors.New("instantiateOrUpgradeCC timed out or been cancelled")
}

}
Expand Down

0 comments on commit b05338f

Please sign in to comment.