From e4a7c083da6f01662407cacf60b2f1bb33a4860f Mon Sep 17 00:00:00 2001 From: Rsl1122 <24460436+Rsl1122@users.noreply.github.com> Date: Fri, 14 Feb 2020 15:08:06 +0200 Subject: [PATCH] Updated a webserver error for missing cert less spam --- .../java/com/djrapitops/plan/delivery/webserver/WebServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/WebServer.java b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/WebServer.java index 03f72df00..41a9b84af 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/WebServer.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/delivery/webserver/WebServer.java @@ -199,7 +199,7 @@ public class WebServer implements SubSystem { Certificate cert = keystore.getCertificate(alias); if (cert == null) { - throw new IllegalStateException("Certificate with Alias: " + alias + " was not found in the Keystore."); + throw new IllegalStateException("Alias: '" + alias + "' was not found in file " + keyStorePath + "."); } logger.info("Certificate: " + cert.getType()); @@ -230,7 +230,6 @@ public class WebServer implements SubSystem { startSuccessful = true; } catch (IllegalStateException e) { logger.error(e.getMessage()); - errorHandler.log(L.ERROR, this.getClass(), e); } catch (KeyManagementException | NoSuchAlgorithmException e) { logger.error(locale.getString(PluginLang.WEB_SERVER_FAIL_SSL_CONTEXT)); errorHandler.log(L.ERROR, this.getClass(), e);