diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-08-16 03:14:35 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-08-16 03:14:35 +0400 |
commit | 7064c8679595ad7457c2872400612db96cc36b70 (patch) | |
tree | 6977ee33343b0236d0b6682fd28b5383bc8080f2 /bin | |
parent | 795bffb2ede3e43a51d7f95e20fef9d66943dc51 (diff) |
on crash, ask user to report bug
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -12,6 +12,15 @@ var numeral = require('numeral') var path = require('path') var WebTorrent = require('../') +process.on('exit', function (code) { + if (code !== 0) { + clivas.line('{red:ERROR:} If you think this is a bug in webtorrent, report it!') + console.log('=====> <=====') + console.log('=====> https://github.com/feross/webtorrent/issues <=====') + console.log('=====> <=====') + } +}) + var argv = minimist(process.argv.slice(2), { alias: { p: 'port', @@ -58,7 +67,7 @@ if (argv.help || !torrentId) { Download the torrent, given as: - * magnet uri (string) + * magnet uri * http/https url to .torrent file * filesystem path to .torrent file * info hash (as hex string) |