Skip to content

Commit

Permalink
Return with error
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles Starkenburg committed Jan 25, 2017
1 parent 7f2724f commit 3665953
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/karma-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ Plugin.prototype.make = function(compilation, callback) {

var dep = new SingleEntryDependency(entry)

compilation.addEntry('', dep, path.relative(this.basePath, file).replace(/\\/g, '/'), function() {
compilation.addEntry('', dep, path.relative(this.basePath, file).replace(/\\/g, '/'), function(err) {
if (err) {
return callback(err);
}
// If the module fails because of an File not found error, remove the test file
if (dep.module && dep.module.error &&
dep.module.error.error &&
Expand Down

0 comments on commit 3665953

Please sign in to comment.