diff options
author | eric thul <thul.eric@gmail.com> | 2016-11-05 14:01:18 -0400 |
---|---|---|
committer | eric thul <thul.eric@gmail.com> | 2016-11-05 14:01:18 -0400 |
commit | 4b99e432d63e7a0ce8ad8d2184232417853bfd2b (patch) | |
tree | 8b0cf5796e152f2b76753de40576ca193933f004 /src/index.js | |
parent | 2cca7e91062917d3239f179770133175350af7cc (diff) | |
download | purs-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.js | 2 |
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 | } |