Show the exit code if RunManager failed to start a process (#6797)

This commit is contained in:
Kai Yang
2020-01-15 19:31:56 +08:00
committed by Zhijun Fu
parent a0dc02042b
commit cd5fc81bdd
@@ -146,7 +146,8 @@ public class RunManager {
e.printStackTrace();
}
if (!p.isAlive()) {
throw new RuntimeException("Failed to start " + name);
throw new RuntimeException(
String.format("Failed to start %s. Exit code: %d.", name, p.exitValue()));
}
processes.add(Pair.of(name, p));
if (LOGGER.isInfoEnabled()) {