Skip to content

Commit

Permalink
🐛 song-loader silently discards errors :(
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth committed Mar 10, 2017
1 parent 4cd5099 commit 49a40b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/song-loader/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import Worker from 'worker!./worker.js'

export function loadSongFromResources (resources, options = {}) {
Expand Down Expand Up @@ -33,6 +32,8 @@ export function loadSongFromResources (resources, options = {}) {
}
}
worker.onerror = function (e) {
onMessage('Worker error: ' + e)
console.error('Worker error: ' + e)
reject(e)
}
worker.postMessage({ files })
Expand Down

0 comments on commit 49a40b7

Please sign in to comment.