diff --git a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java index 66bdaf380e..6272656aff 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueue.java @@ -957,7 +957,7 @@ public class ActionQueue { throw he; } catch (Exception e) { - throw new HibernateException( "Unable to perform beforeTransactionCompletion callback", e ); + throw new HibernateException( "Unable to perform beforeTransactionCompletion callback: " + e.getMessage(), e ); } } } @@ -987,7 +987,7 @@ public class ActionQueue { // continue loop } catch (Exception e) { - throw new HibernateException( "Unable to perform afterTransactionCompletion callback", e ); + throw new HibernateException( "Unable to perform afterTransactionCompletion callback: " + e.getMessage(), e ); } }