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.
2 parents f85def5 + d18b80e commit 6e03915Copy full SHA for 6e03915
test/src/com/rabbitmq/tools/Host.java
@@ -39,11 +39,11 @@ private static String capture(InputStream is)
39
public static void executeCommand(String command) throws IOException
40
{
41
Process pr = executeCommandProcess(command);
42
- String stdout = capture(pr.getInputStream());
43
- String stderr = capture(pr.getErrorStream());
44
45
int ev = waitForExitValue(pr);
46
if (ev != 0) {
+ String stdout = capture(pr.getInputStream());
+ String stderr = capture(pr.getErrorStream());
47
throw new IOException("unexpected command exit value: " + ev +
48
"\nstdout:\n" + stdout +
49
"\nstderr:\n" + stderr + "\n");
0 commit comments