Skip to content

Commit 9469067

Browse files
committed
little more error reporting
1 parent faac6d9 commit 9469067

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/execLoaders.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ module.exports = function(request, loaders, filenames, contents, options, callba
5252
async = true;
5353
if(done) {
5454
if(err.stack) console.error(err.stack);
55-
else console.error(err);
55+
else if(err) console.error(err);
56+
else console.error(new Error("loader returned multiple times").stack);
5657
return;
5758
}
5859
done = true;

0 commit comments

Comments
 (0)