提交 b2a00d9b authored 作者: Thomas Mueller's avatar Thomas Mueller

The error message when the server doesn't start has been improved.

上级 a88c87c7
...@@ -134,6 +134,7 @@ ShutdownHandler { ...@@ -134,6 +134,7 @@ ShutdownHandler {
e.printStackTrace(); e.printStackTrace();
} else { } else {
System.out.println(server.getStatus()); System.out.println(server.getStatus());
System.out.println("Root cause: " + e.getMessage());
} }
} }
......
...@@ -360,7 +360,7 @@ public class Server implements Runnable, ShutdownHandler { ...@@ -360,7 +360,7 @@ public class Server implements Runnable, ShutdownHandler {
} }
buff.append(")"); buff.append(")");
} else { } else {
buff.append("Port is in use, maybe another " + service.getType() + " server already running on "); buff.append("The " + service.getType() + " server could not be started. Possible cause: another server is already running on ");
buff.append(service.getURL()); buff.append(service.getURL());
} }
return buff.toString(); return buff.toString();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论