When a test fails to start the daemon print a hint

Failure to start the damon from an acceptance test was not making it
obvious why the test failed. Print a hint to the user suggesting to
look into the error_log for details.

Change-Id: I72a89356f794de1d3d9a706f851db7937b9870ac
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
This commit is contained in:
Sasa Zivkov
2013-03-14 14:33:10 +01:00
parent 443a3a1c8f
commit 9fa592f975

View File

@@ -58,6 +58,8 @@ class GerritServer {
public Void call() throws Exception {
int rc = daemon.main(new String[] {"-d", sitePath, "--headless" });
if (rc != 0) {
System.out.println("Failed to start Gerrit daemon. Check "
+ sitePath + "/logs/error_log");
serverStarted.reset();
}
return null;