Improve error message
[lgpl/argeo-commons.git] / org.argeo.cms.lib.jetty / src / org / argeo / cms / jetty / JettyHttpServer.java
index 027ef9f3dcba0b54dc1a1371e126f9f45e566642..fd0ef4cac3143046ebea1c852535bbfe464129fe 100644 (file)
@@ -124,7 +124,7 @@ public class JettyHttpServer extends HttpsServer {
                        started = true;
                } catch (Exception e) {
                        stop();
-                       throw new IllegalStateException("Cannot start Jetty HTTPS server", e);
+                       throw new IllegalStateException("Cannot start Jetty HTTP server", e);
                }
        }
 
@@ -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");