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 27, 2020
1 parent b279fe2 commit 2c896ea
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 @@ -500,7 +500,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 2c896ea

Please sign in to comment.