Skip to content

Commit b375130

Browse files
committed
better error reporting of parse errors
1 parent dbe3542 commit b375130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/buildModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function buildModule(context, filenameWithLoaders,
7676
try {
7777
deps = parse(source, options.parse);
7878
} catch(e) {
79-
callback(new Error("File \"" + filenameWithLoaders + "\" parsing failed: " + e), extraResults);
79+
callback(new Error("File \"" + filenameWithLoaders + "\" parsing failed: " + e.stack), extraResults);
8080
return;
8181
}
8282
profile && (profile.end = new Date().getTime());

0 commit comments

Comments
 (0)