HHH-13666 Re-use the wrapped exception's message upon beforeTransactionCompletion/afterTransactionCompletion failure

For convenience.
This commit is contained in:
Yoann Rodière 2019-10-15 15:05:52 +02:00 committed by Guillaume Smet
parent f9c149ab0d
commit 5c8169ba7c
1 changed files with 2 additions and 2 deletions

View File

@ -957,7 +957,7 @@ public class ActionQueue {
throw he; throw he;
} }
catch (Exception e) { 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 // continue loop
} }
catch (Exception e) { catch (Exception e) {
throw new HibernateException( "Unable to perform afterTransactionCompletion callback", e ); throw new HibernateException( "Unable to perform afterTransactionCompletion callback: " + e.getMessage(), e );
} }
} }