Skip to content

Commit

Permalink
[FAB-5047] Fix error msg
Browse files Browse the repository at this point in the history
The ready() method's failure should trigger ChaincodeMessage_READY msg
in log instead of ChaincodeMessage_INIT. This patchet helps fix it.

Change-Id: I1753c0d0f9a2be0e3779e7fa09cdaf14d0987851
Signed-off-by: Baohua Yang <yangbaohua@gmail.com>
  • Loading branch information
yeasy committed Jun 28, 2017
1 parent dc7c40b commit e11feee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/chaincode_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func (chaincodeSupport *ChaincodeSupport) sendReady(context context.Context, ccc
var notfy chan *pb.ChaincodeMessage
var err error
if notfy, err = chrte.handler.ready(context, cccid.ChainID, cccid.TxID, cccid.SignedProposal, cccid.Proposal); err != nil {
return fmt.Errorf("Error sending %s: %s", pb.ChaincodeMessage_INIT, err)
return fmt.Errorf("Error sending %s: %s", pb.ChaincodeMessage_READY, err)
}
if notfy != nil {
select {
Expand Down

0 comments on commit e11feee

Please sign in to comment.