diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -26,9 +26,14 @@ database.connect() | |||
26 | // ----------- Checker ----------- | 26 | // ----------- Checker ----------- |
27 | const checker = require('./server/initializers/checker') | 27 | const checker = require('./server/initializers/checker') |
28 | 28 | ||
29 | const miss = checker.checkConfig() | 29 | const missed = checker.checkMissedConfig() |
30 | if (miss.length !== 0) { | 30 | if (missed.length !== 0) { |
31 | throw new Error('Miss some configurations keys : ' + miss) | 31 | throw new Error('Miss some configurations keys : ' + missed) |
32 | } | ||
33 | |||
34 | const errorMessage = checker.checkConfig() | ||
35 | if (errorMessage !== null) { | ||
36 | throw new Error(errorMessage) | ||
32 | } | 37 | } |
33 | 38 | ||
34 | // ----------- PeerTube modules ----------- | 39 | // ----------- PeerTube modules ----------- |