From: Mathieu Baudier Date: Mon, 31 Oct 2022 05:50:25 +0000 (+0100) Subject: Improve error message X-Git-Tag: v2.3.11~57 X-Git-Url: https://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=fbdca9fcba285280f1d113671ef3ba7a670e45c7 Improve error message --- diff --git a/org.argeo.cms.lib.jetty/src/org/argeo/cms/jetty/JettyHttpServer.java b/org.argeo.cms.lib.jetty/src/org/argeo/cms/jetty/JettyHttpServer.java index eb7b957dd..fd0ef4cac 100644 --- a/org.argeo.cms.lib.jetty/src/org/argeo/cms/jetty/JettyHttpServer.java +++ b/org.argeo.cms.lib.jetty/src/org/argeo/cms/jetty/JettyHttpServer.java @@ -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");