You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For 'application errors' set response to the COMPLETED
Previously this was set to error which means that the entire chaincode failed, not
a 'good' error from the application level code
Signed-off-by: Matthew B White <[email protected]>
Copy file name to clipboardExpand all lines: fabric-chaincode-shim/src/main/java/org/hyperledger/fabric/contract/execution/impl/ContractExecutionService.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ public Chaincode.Response executeRequest(final TxFunction txFn, final Invocation
74
74
finalThrowablecause = e.getCause();
75
75
76
76
if (causeinstanceofChaincodeException) {
77
-
throw (ChaincodeException) cause;
77
+
response = ResponseUtils.newErrorResponse(cause);
78
78
} else {
79
79
thrownewContractRuntimeException("Error during contract method execution", cause);
0 commit comments