Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-07-17 01:13:43 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-07-17 04:50:14 +0300
commit87e3a887e6fe57f022be36beef2a77faee32a952 (patch)
tree7c651af4f15a8f92cd9c36caa6d25a4fb00dd4d3 /bin/cmd.js
parent9f14d506fe059acca3e5940739b78eb7d04c6fd6 (diff)
cmd: better crash output
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-xbin/cmd.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 18e1643..0ba7a4b 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -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'
)
}
})