diff options
author | Florrie <towerofnix@gmail.com> | 2018-03-03 08:38:40 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-03-03 08:38:40 -0400 |
commit | 8278392e00ef396abcdabc1d538bebeb20deb70c (patch) | |
tree | 799e60e95b0ac5050f8c7a7f05a33fbace0d57df /src | |
parent | 4ff150e42f03d51ddfed228e7da33b19eb773eaf (diff) |
Be more specific about loop-play errors
Diffstat (limited to 'src')
-rw-r--r-- | src/loop-play.js | 4 |
1 files 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 |