diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 12:01:40 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-02-07 12:01:40 +0100 |
commit | ac2f99eb75ea0295dc08e47b91f4b4d54829d004 (patch) | |
tree | 9f0d6d70be66545df336f75be5f1bdefa62c70ca /lib/webtorrentProcess.js | |
parent | a030a9b234d315c180f40d8abd177637c1a91f6a (diff) | |
download | PeerTube-ac2f99eb75ea0295dc08e47b91f4b4d54829d004.tar.gz PeerTube-ac2f99eb75ea0295dc08e47b91f4b4d54829d004.tar.zst PeerTube-ac2f99eb75ea0295dc08e47b91f4b4d54829d004.zip |
Don't use process.exit, throw an error instead
Diffstat (limited to 'lib/webtorrentProcess.js')
-rw-r--r-- | lib/webtorrentProcess.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/webtorrentProcess.js b/lib/webtorrentProcess.js index 96ebf9d02..7ba2dd3d9 100644 --- a/lib/webtorrentProcess.js +++ b/lib/webtorrentProcess.js | |||
@@ -5,8 +5,7 @@ function webtorrent (args) { | |||
5 | var ipc = require('node-ipc') | 5 | var ipc = require('node-ipc') |
6 | 6 | ||
7 | if (args.length !== 3) { | 7 | if (args.length !== 3) { |
8 | console.log('Wrong arguments number: ' + args.length + '/3') | 8 | throw new Error('Wrong arguments number: ' + args.length + '/3') |
9 | process.exit(-1) | ||
10 | } | 9 | } |
11 | 10 | ||
12 | var host = args[1] | 11 | var host = args[1] |