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:
-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)
+ })
})
}