提交 a46be108 编写于 作者: fxy060608's avatar fxy060608

fix: error (question/143075)

上级 1b33307e
......@@ -118,6 +118,7 @@ function buildErrorMessage(
args.push(
colors.yellow(pad(generateCodeFrame(scriptLoc.source, err.loc)))
)
// correct error location
err.loc.line = scriptLoc.start.line + err.loc.line - 1
}
} catch (e: any) {}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册