diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-07-17 01:13:43 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-07-17 04:50:14 +0300 |
commit | 87e3a887e6fe57f022be36beef2a77faee32a952 (patch) | |
tree | 7c651af4f15a8f92cd9c36caa6d25a4fb00dd4d3 /bin/cmd.js | |
parent | 9f14d506fe059acca3e5940739b78eb7d04c6fd6 (diff) |
cmd: better crash output
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-x | bin/cmd.js | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -19,15 +19,16 @@ process.title = 'WebTorrent' process.on('exit', function (code) { if (code !== 0) { - clivas.line('{red:ERROR ' + code + ':} If you think this is a bug in WebTorrent, report it!') - console.log('=====> <=====') - console.log('=====> https://github.com/feross/webtorrent/issues <=====') - console.log('=====> <=====') + clivas.line('{red:ERROR:} If you think this is a bug in WebTorrent, report it!\n') + console.log('=====> <=====') + console.log('=====> https://github.com/feross/webtorrent/issues <=====') + console.log('=====> <=====') clivas.line( - '{red:SYSTEM INFO:} ' + - 'node ' + process.version + ' ' + - process.platform + ' ' + process.arch + ' ' + - 'WebTorrent ' + require('../package.json').version + '\n' + '\n{green:DEBUG INFO:} ' + + 'node ' + process.version + ', ' + + process.platform + ' ' + process.arch + ', ' + + 'webtorrent ' + require('../package.json').version + ', ' + + 'exit ' + code + '\n' ) } }) |