From 3f9447d6b95678990e3691d5129c24d44efd21da Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Wed, 26 Aug 2020 14:58:05 +0200 Subject: [PATCH] Fix error message when parsing AST --- lib/lbt/bundle/Builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lbt/bundle/Builder.js b/lib/lbt/bundle/Builder.js index ee792b417..aed9449c9 100644 --- a/lib/lbt/bundle/Builder.js +++ b/lib/lbt/bundle/Builder.js @@ -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; }