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
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-02-16 10:55:23 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-02-16 10:55:23 +0300
commit4faae5b9e84536fcae63c9ce0e16e898d916406f (patch)
treeed0b7d4b9390fd0693a432f806f78c28ed19b219 /bin
parentc667425f741187fa3334468bc52114f448bd9a93 (diff)
catch and print chromecast errors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index e2cbe5f..29ceb35 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -425,6 +425,10 @@ function runDownload (torrentId) {
player.play(href, {
title: torrent.name
})
+ player.on('error', function (err) {
+ err.message = 'Chromecast: ' + err.message
+ errorAndExit(err)
+ })
})
}