Skip to content

Commit

Permalink
Fix error message when parsing AST
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Aug 31, 2020
1 parent 7b4717c commit 3f9447d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lbt/bundle/Builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ function rewriteDefine(targetBundleFormat, code, moduleName, avoidLazyParsing) {
try {
ast = esprima.parseScript(code.toString(), {loc: true});
} catch (e) {
log.error("error while parsing %s:%s", module, e);
log.error("error while parsing %s:%s", moduleName, e);
return;
}

Expand Down

0 comments on commit 3f9447d

Please sign in to comment.