Skip to content

Commit 70cad12

Browse files
committed
Fix misleading error message
Currently while there is an error during chain code execution, wrong message printed to log. Instead of "Error executing..." there is "Error deploying...". Change-Id: I944ffb8fad58b4f35bab126b806d929daae0f9ad Signed-off-by: Artem Barger <[email protected]>
1 parent ff1bd2d commit 70cad12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/chaincode/chaincodeexec.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func ExecuteChaincode(ctxt context.Context, cccid *CCContext, args [][]byte) ([]
7171
spec, err = createCIS(cccid.Name, args)
7272
b, ccevent, err = Execute(ctxt, cccid, spec)
7373
if err != nil {
74-
return nil, nil, fmt.Errorf("Error deploying chaincode: %s", err)
74+
return nil, nil, fmt.Errorf("Error executing chaincode: %s", err)
7575
}
7676
return b, ccevent, err
7777
}

0 commit comments

Comments
 (0)