提交 7b65e242 authored 作者: Thomas Mueller's avatar Thomas Mueller

Fix grammar.

上级 49c1e4af
...@@ -991,7 +991,7 @@ public class ErrorCode { ...@@ -991,7 +991,7 @@ public class ErrorCode {
/** /**
* The error with code <code>90061</code> is thrown when * The error with code <code>90061</code> is thrown when
* trying to start a server if a server is already running on the same port. * trying to start a server if a server is already running at the same port.
* It could also be a firewall problem. To find out if another server is * It could also be a firewall problem. To find out if another server is
* already running, run the following command on Windows: * already running, run the following command on Windows:
* <pre> * <pre>
...@@ -1060,7 +1060,7 @@ public class ErrorCode { ...@@ -1060,7 +1060,7 @@ public class ErrorCode {
/** /**
* The error with code <code>90067</code> is thrown when the client could * The error with code <code>90067</code> is thrown when the client could
* not connect to the database, or if the connection was lost. Possible * not connect to the database, or if the connection was lost. Possible
* reasons are: the database server is not running on the given port, the * reasons are: the database server is not running at the given port, the
* connection was closed due to a shutdown, or the server was stopped. Other * connection was closed due to a shutdown, or the server was stopped. Other
* possible causes are: the server is not an H2 server, or the network * possible causes are: the server is not an H2 server, or the network
* connection is broken. * connection is broken.
......
...@@ -276,7 +276,7 @@ public class Server extends Tool implements Runnable, ShutdownHandler { ...@@ -276,7 +276,7 @@ public class Server extends Tool implements Runnable, ShutdownHandler {
buff.append("Not started"); buff.append("Not started");
} else if (isRunning(false)) { } else if (isRunning(false)) {
buff.append(service.getType()). buff.append(service.getType()).
append(" server running on "). append(" server running at ").
append(service.getURL()). append(service.getURL()).
append(" ("); append(" (");
if (service.getAllowOthers()) { if (service.getAllowOthers()) {
...@@ -288,7 +288,7 @@ public class Server extends Tool implements Runnable, ShutdownHandler { ...@@ -288,7 +288,7 @@ public class Server extends Tool implements Runnable, ShutdownHandler {
} else { } else {
buff.append("The "). buff.append("The ").
append(service.getType()). append(service.getType()).
append(" server could not be started. Possible cause: another server is already running on "). append(" server could not be started. Possible cause: another server is already running at ").
append(service.getURL()); append(service.getURL());
} }
return buff.toString(); return buff.toString();
......
...@@ -40,7 +40,7 @@ public class TestPgServer extends TestBase { ...@@ -40,7 +40,7 @@ public class TestPgServer extends TestBase {
assertEquals(5535, server.getPort()); assertEquals(5535, server.getPort());
assertEquals("Not started", server.getStatus()); assertEquals("Not started", server.getStatus());
server.start(); server.start();
assertStartsWith(server.getStatus(), "PG server running on pg://"); assertStartsWith(server.getStatus(), "PG server running at pg://");
try { try {
Class.forName("org.postgresql.Driver"); Class.forName("org.postgresql.Driver");
testPgClient(); testPgClient();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论