aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/index.js
diff options
context:
space:
mode:
authoreric thul <thul.eric@gmail.com>2016-11-05 14:01:18 -0400
committereric thul <thul.eric@gmail.com>2016-11-05 14:01:18 -0400
commit4b99e432d63e7a0ce8ad8d2184232417853bfd2b (patch)
tree8b0cf5796e152f2b76753de40576ca193933f004 /src/index.js
parent2cca7e91062917d3239f179770133175350af7cc (diff)
downloadpurs-loader-4b99e432d63e7a0ce8ad8d2184232417853bfd2b.tar.gz
purs-loader-4b99e432d63e7a0ce8ad8d2184232417853bfd2b.tar.zst
purs-loader-4b99e432d63e7a0ce8ad8d2184232417853bfd2b.zip
Wrapping reject values in Error objects
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index c73fdd5..f3b2fde 100644
--- a/src/index.js
+++ b/src/index.js
@@ -125,7 +125,7 @@ module.exports = function purescriptLoader(source, map) {
125 })) 125 }))
126 .catch(error => { 126 .catch(error => {
127 cache.deferred[0].reject(error) 127 cache.deferred[0].reject(error)
128 cache.deferred.slice(1).forEach(psModule => psModule.reject(true)) 128 cache.deferred.slice(1).forEach(psModule => psModule.reject(new Error('purs-loader failed')))
129 }) 129 })
130 } 130 }
131} 131}