From 8278392e00ef396abcdabc1d538bebeb20deb70c Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 3 Mar 2018 08:38:40 -0400 Subject: Be more specific about loop-play errors --- src/loop-play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/loop-play.js b/src/loop-play.js index 9c679c7..b44e83f 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -310,7 +310,7 @@ class DownloadController extends EventEmitter { try { downloadFile = await downloader(downloaderArg) } catch(err) { - this.emit('errored', err) + this.emit('errored', 'Download error: ' + err) return } @@ -326,7 +326,7 @@ class DownloadController extends EventEmitter { try { convertFile = await this.converter(converterOptions)(downloadFile) } catch(err) { - this.emit('errored', err) + this.emit('errored', 'Convert error: ' + err) return } finally { // Whether the convertion succeeds or not (hence 'finally'), we should -- cgit 1.3.0-6-gf8a5