Skip to content

Commit 32321f4

Browse files
mbwhitejt-nti
authored andcommitted
Include the exception cause
Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
1 parent a84dc47 commit 32321f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fabric-chaincode-shim/src/main/java/org/hyperledger/fabric/contract/ContractRouter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ void startRouting() {
9898
try {
9999
super.connectToPeer();
100100
} catch (final Exception e) {
101-
final ContractRuntimeException cre = new ContractRuntimeException("Unable to start routing");
102-
logger.severe(() -> Logging.formatError(cre));
101+
logger.severe(() -> Logging.formatError(e));
102+
final ContractRuntimeException cre = new ContractRuntimeException("Unable to start routing", e);
103103
throw cre;
104104
}
105105
}

0 commit comments

Comments
 (0)