Skip to content

Commit fb23424

Browse files
committed
one error check more
1 parent 9469067 commit fb23424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/execLoaders.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function(request, loaders, filenames, contents, options, callba
5151
callback: function(err) {
5252
async = true;
5353
if(done) {
54-
if(err.stack) console.error(err.stack);
54+
if(err && err.stack) console.error(err.stack);
5555
else if(err) console.error(err);
5656
else console.error(new Error("loader returned multiple times").stack);
5757
return;

0 commit comments

Comments
 (0)