Skip to content

Commit e11feee

Browse files
committed
[FAB-5047] Fix error msg
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 <[email protected]>
1 parent dc7c40b commit e11feee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/chaincode/chaincode_support.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ func (chaincodeSupport *ChaincodeSupport) sendReady(context context.Context, ccc
320320
var notfy chan *pb.ChaincodeMessage
321321
var err error
322322
if notfy, err = chrte.handler.ready(context, cccid.ChainID, cccid.TxID, cccid.SignedProposal, cccid.Proposal); err != nil {
323-
return fmt.Errorf("Error sending %s: %s", pb.ChaincodeMessage_INIT, err)
323+
return fmt.Errorf("Error sending %s: %s", pb.ChaincodeMessage_READY, err)
324324
}
325325
if notfy != nil {
326326
select {

0 commit comments

Comments
 (0)