1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Don't use process.exit, throw an error instead

This commit is contained in:
Chocobozzz 2016-02-07 12:01:40 +01:00
parent a030a9b234
commit ac2f99eb75
5 changed files with 7 additions and 15 deletions

View file

@ -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]