Skip to content

Commit 70bbe71

Browse files
committed
1 parent ff27189 commit 70bbe71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ protected Object invokeWithinTransaction(Method method, @Nullable Class<?> targe
327327

328328
if (this.reactiveAdapterRegistry != null) {
329329
if (KotlinDetector.isKotlinType(method.getDeclaringClass()) && KotlinDelegate.isSuspend(method)) {
330-
throw new TransactionUsageException("Annotated transactions on suspending functions are not supported," +
331-
" use TransactionalOperator.transactional extensions instead.");
330+
throw new TransactionUsageException("Unsupported annotated transaction on suspending function detected: "
331+
+ method + ". Use TransactionalOperator.transactional extensions instead.");
332332
}
333333
ReactiveAdapter adapter = this.reactiveAdapterRegistry.getAdapter(method.getReturnType());
334334
if (adapter != null) {

0 commit comments

Comments
 (0)