We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaf228a commit 9ff567dCopy full SHA for 9ff567d
dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/utils/PortUtils.java
@@ -115,7 +115,17 @@ public static void waitForPortToOpen(
115
}
116
117
if (!process.isAlive()) {
118
- throw new RuntimeException("Process died before port " + port + " was opened");
+ int exitCode = process.exitValue();
119
+ if (exitCode != 0) {
120
+ throw new RuntimeException(
121
+ "Process exited abnormally exitCode="
122
+ + exitCode
123
+ + " before port="
124
+ + port
125
+ + " was opened");
126
+ } else {
127
+ throw new RuntimeException("Process died before port=" + port + " was opened");
128
+ }
129
130
131
if (isPortOpen(port)) {
0 commit comments