blockchain-application-using-fabric-java-sdk
blockchain-application-using-fabric-java-sdk copied to clipboard
Losing actual error message sent by chaincode.
I am using fabric-gateway-java as dependency in my project which internally uses fabric-sdk-java. In fabric-java-sdk we are losing actual error message that is sent by chaincode. Instead of actual error message we always get error like "org.hyperledger.fabric.sdk.exception.ProposalException: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: Could not meet endorsement policy for chaincode <chaincodeName>"
You can see it in Channel.java line number 4561 and 4698. How can I get the original error message sent by chaincode?