From 10cde877318da1a954ed2be2fd9e703a88de0f61 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Wed, 8 Jul 2020 10:11:58 +0200 Subject: [PATCH] Don't swallow original exception during the beginning of a tx. --- .../data/core/transaction/Neo4jTransactionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-neo4j-rx/src/main/java/org/neo4j/springframework/data/core/transaction/Neo4jTransactionManager.java b/spring-data-neo4j-rx/src/main/java/org/neo4j/springframework/data/core/transaction/Neo4jTransactionManager.java index 53846f58..7f1b5b97 100644 --- a/spring-data-neo4j-rx/src/main/java/org/neo4j/springframework/data/core/transaction/Neo4jTransactionManager.java +++ b/spring-data-neo4j-rx/src/main/java/org/neo4j/springframework/data/core/transaction/Neo4jTransactionManager.java @@ -176,7 +176,7 @@ protected void doBegin(Object transaction, TransactionDefinition definition) thr TransactionSynchronizationManager.bindResource(this.driver, transactionHolder); } catch (Exception ex) { - throw new TransactionSystemException(String.format("Could not open a new Neo4j session: %s", ex.getMessage())); + throw new TransactionSystemException(String.format("Could not open a new Neo4j session: %s", ex.getMessage()), ex); } }