aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/server.js b/server.js
index 317b6ed77..18d9a087c 100644
--- a/server.js
+++ b/server.js
@@ -26,9 +26,14 @@ database.connect()
26// ----------- Checker ----------- 26// ----------- Checker -----------
27const checker = require('./server/initializers/checker') 27const checker = require('./server/initializers/checker')
28 28
29const miss = checker.checkConfig() 29const missed = checker.checkMissedConfig()
30if (miss.length !== 0) { 30if (missed.length !== 0) {
31 throw new Error('Miss some configurations keys : ' + miss) 31 throw new Error('Miss some configurations keys : ' + missed)
32}
33
34const errorMessage = checker.checkConfig()
35if (errorMessage !== null) {
36 throw new Error(errorMessage)
32} 37}
33 38
34// ----------- PeerTube modules ----------- 39// ----------- PeerTube modules -----------