Commit e11feeed authored by Baohua Yang's avatar Baohua Yang
Browse files

[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: default avatarBaohua Yang <yangbaohua@gmail.com>
parent dc7c40b7
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment