Improve error message
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 31 Oct 2022 05:50:25 +0000 (06:50 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 31 Oct 2022 05:50:25 +0000 (06:50 +0100)
org.argeo.cms.lib.jetty/src/org/argeo/cms/jetty/JettyHttpServer.java

index eb7b957ddf35690db78ec6c7fb99787fff54656b..fd0ef4cac3143046ebea1c852535bbfe464129fe 100644 (file)
@@ -214,7 +214,7 @@ public class JettyHttpServer extends HttpsServer {
                String httpPortStr = getDeployProperty(CmsDeployProperty.HTTP_PORT);
                String httpsPortStr = getDeployProperty(CmsDeployProperty.HTTPS_PORT);
                if (httpPortStr != null && httpsPortStr != null)
-                       throw new IllegalArgumentException("Either an HTTP or an HTTPS should be configured, not both");
+                       throw new IllegalArgumentException("Either an HTTP or an HTTPS port should be configured, not both");
                if (httpPortStr == null && httpsPortStr == null)
                        throw new IllegalArgumentException("Neither an HTTP or HTTPS port was configured");