X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=lib%2FwebtorrentProcess.js;h=7ba2dd3d9f6d1d175c7946ec88428b7b9b2d19ac;hb=ac2f99eb75ea0295dc08e47b91f4b4d54829d004;hp=96ebf9d023b3a48e3e0dd0c7ce5e8dd60008ccf6;hpb=9f10b2928df655c3672d9607e864e667d4bc903a;p=github%2FChocobozzz%2FPeerTube.git 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) { var ipc = require('node-ipc') if (args.length !== 3) { - console.log('Wrong arguments number: ' + args.length + '/3') - process.exit(-1) + throw new Error('Wrong arguments number: ' + args.length + '/3') } var host = args[1]