mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Sockets: fix SSL crash logging
This commit is contained in:
parent
8315e8a641
commit
5b9e1f3547
|
|
@ -226,7 +226,7 @@ if (cluster.isMaster) {
|
|||
try {
|
||||
key = fs.readFileSync(key);
|
||||
} catch (e) {
|
||||
require('./crashlogger')(`Failed to read the configured SSL private key PEM file:\n${e.stack}`, `Socket process ${cluster.worker.id} (${process.pid})`, true);
|
||||
require('./crashlogger')(new Error(`Failed to read the configured SSL private key PEM file:\n${e.stack}`), `Socket process ${cluster.worker.id} (${process.pid})`, true);
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('SSL private key config values will not support HTTPS server option values in the future. Please set it to use the absolute path of its PEM file.');
|
||||
|
|
@ -240,7 +240,7 @@ if (cluster.isMaster) {
|
|||
try {
|
||||
cert = fs.readFileSync(cert);
|
||||
} catch (e) {
|
||||
require('./crashlogger')(`Failed to read the configured SSL certificate PEM file:\n${e.stack}`, `Socket process ${cluster.worker.id} (${process.pid})`, true);
|
||||
require('./crashlogger')(new Error(`Failed to read the configured SSL certificate PEM file:\n${e.stack}`), `Socket process ${cluster.worker.id} (${process.pid})`, true);
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('SSL certificate config values will not support HTTPS server option values in the future. Please set it to use the absolute path of its PEM file.');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user