From 4faae5b9e84536fcae63c9ce0e16e898d916406f Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 15 Feb 2016 23:55:23 -0800 Subject: catch and print chromecast errors --- bin/cmd.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin') 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) + }) }) } -- cgit v1.2.3