aboutsummaryrefslogtreecommitdiffhomepage
path: root/initializers/checker.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-07 12:01:40 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-07 12:01:40 +0100
commitac2f99eb75ea0295dc08e47b91f4b4d54829d004 (patch)
tree9f0d6d70be66545df336f75be5f1bdefa62c70ca /initializers/checker.js
parenta030a9b234d315c180f40d8abd177637c1a91f6a (diff)
downloadPeerTube-ac2f99eb75ea0295dc08e47b91f4b4d54829d004.tar.gz
PeerTube-ac2f99eb75ea0295dc08e47b91f4b4d54829d004.tar.zst
PeerTube-ac2f99eb75ea0295dc08e47b91f4b4d54829d004.zip
Don't use process.exit, throw an error instead
Diffstat (limited to 'initializers/checker.js')
-rw-r--r--initializers/checker.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/initializers/checker.js b/initializers/checker.js
index 9a7d04ed4..ec7bc0ad2 100644
--- a/initializers/checker.js
+++ b/initializers/checker.js
@@ -36,9 +36,7 @@ function createDirectoriesIfNotExist () {
36 try { 36 try {
37 mkdirp.sync(path.join(__dirname, '..', dir)) 37 mkdirp.sync(path.join(__dirname, '..', dir))
38 } catch (error) { 38 } catch (error) {
39 // Do not use logger 39 throw new Error('Cannot create ' + path + ':' + error)
40 console.error('Cannot create ' + path + ':' + error)
41 process.exit(0)
42 } 40 }
43 } 41 }
44} 42}