mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-20 07:02:21 +01:00
Updated a webserver error for missing cert
less spam
This commit is contained in:
parent
d3fd60a92e
commit
e4a7c083da
@ -199,7 +199,7 @@ public class WebServer implements SubSystem {
|
|||||||
Certificate cert = keystore.getCertificate(alias);
|
Certificate cert = keystore.getCertificate(alias);
|
||||||
|
|
||||||
if (cert == null) {
|
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());
|
logger.info("Certificate: " + cert.getType());
|
||||||
@ -230,7 +230,6 @@ public class WebServer implements SubSystem {
|
|||||||
startSuccessful = true;
|
startSuccessful = true;
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException e) {
|
||||||
logger.error(e.getMessage());
|
logger.error(e.getMessage());
|
||||||
errorHandler.log(L.ERROR, this.getClass(), e);
|
|
||||||
} catch (KeyManagementException | NoSuchAlgorithmException e) {
|
} catch (KeyManagementException | NoSuchAlgorithmException e) {
|
||||||
logger.error(locale.getString(PluginLang.WEB_SERVER_FAIL_SSL_CONTEXT));
|
logger.error(locale.getString(PluginLang.WEB_SERVER_FAIL_SSL_CONTEXT));
|
||||||
errorHandler.log(L.ERROR, this.getClass(), e);
|
errorHandler.log(L.ERROR, this.getClass(), e);
|
||||||
|
Loading…
Reference in New Issue
Block a user