Skip to content

Commit

Permalink
Fix misleading error message
Browse files Browse the repository at this point in the history
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 <bartem@il.ibm.com>
  • Loading branch information
C0rWin committed Dec 27, 2016
1 parent ff1bd2d commit 70cad12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/chaincodeexec.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func ExecuteChaincode(ctxt context.Context, cccid *CCContext, args [][]byte) ([]
spec, err = createCIS(cccid.Name, args)
b, ccevent, err = Execute(ctxt, cccid, spec)
if err != nil {
return nil, nil, fmt.Errorf("Error deploying chaincode: %s", err)
return nil, nil, fmt.Errorf("Error executing chaincode: %s", err)
}
return b, ccevent, err
}

0 comments on commit 70cad12

Please sign in to comment.