Skip to content

Commit 12c4190

Browse files
davidbilgesnicoll
authored andcommitted
Propagate the cause that led Reactor"s debug agent to fail
Prior to this commit, DebugAgentEnvironmentPostProcessor throws a RuntimeException with a generic error message if its initialization fails. The causing exception is discarded, which makes error analysis unnecessarily difficult. This commit attaches the cause to the newly thrown RuntimeException. See gh-22777
1 parent f39f33b commit 12c4190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/reactor/DebugAgentEnvironmentPostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
4949
debugAgent.getMethod("init").invoke(null);
5050
}
5151
catch (Exception ex) {
52-
throw new RuntimeException("Failed to init Reactor's debug agent");
52+
throw new RuntimeException("Failed to init Reactor's debug agent", ex);
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)