Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
rethrow compilation errors
Browse files Browse the repository at this point in the history
fixes #76
  • Loading branch information
sokra committed Jun 14, 2015
1 parent f6bf410 commit 336faab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ module.exports.pitch = function(request) {
childCompiler.runAsChild(function(err, entries, compilation) {
if(err) return callback(err);

if(compilation.errors.length > 0) {
return callback(compilation.errors[0]);
}
compilation.fileDependencies.forEach(function(dep) {
this.addDependency(dep);
}, this);
Expand Down

0 comments on commit 336faab

Please sign in to comment.