aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/server.js b/server.js
index 6312a4048..c971982b3 100644
--- a/server.js
+++ b/server.js
@@ -18,9 +18,7 @@ var checker = require('./initializers/checker')
18 18
19var miss = checker.checkConfig() 19var miss = checker.checkConfig()
20if (miss.length !== 0) { 20if (miss.length !== 0) {
21 // Do not use logger module 21 throw new Error('Miss some configurations keys : ' + miss)
22 console.error('Miss some configurations keys.', { miss: miss })
23 process.exit(0)
24} 22}
25 23
26checker.createDirectoriesIfNotExist() 24checker.createDirectoriesIfNotExist()
@@ -145,7 +143,7 @@ peertubeCrypto.createCertsIfNotExist(function (err) {
145 } 143 }
146 144
147 function exitGracefullyOnSignal () { 145 function exitGracefullyOnSignal () {
148 process.exit() 146 process.exit(-1)
149 } 147 }
150 148
151 process.on('exit', cleanForExit) 149 process.on('exit', cleanForExit)