Merge pull request #4423 from brunnre8/exit

Use non 0 exit code in abnormal shutdown
This commit is contained in:
Max Leiter 2021-12-04 14:57:48 -08:00 committed by GitHub
commit ecc0b9183e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,17 +108,17 @@ module.exports = function (options = {}) {
if (!keyPath.length || !fs.existsSync(keyPath)) {
log.error("Path to SSL key is invalid. Stopping server...");
process.exit();
process.exit(1);
}
if (!certPath.length || !fs.existsSync(certPath)) {
log.error("Path to SSL certificate is invalid. Stopping server...");
process.exit();
process.exit(1);
}
if (caPath.length && !fs.existsSync(caPath)) {
log.error("Path to SSL ca bundle is invalid. Stopping server...");
process.exit();
process.exit(1);
}
server = require("https");