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

feat(v3): add resource path for compile error

上级 3911148e
......@@ -39,7 +39,7 @@ module.exports = {
try {
return compile(source, options)
} catch (e) {
console.error(`'错误:${options.resourcePath}'`)
console.error(`错误:${options.resourcePath}`)
throw new Error(e.message)
}
} else if (options.view) {
......@@ -49,7 +49,7 @@ module.exports = {
try {
return compile(source, options)
} catch (e) {
console.error(`'错误:${options.resourcePath}'`)
console.error(`错误:${options.resourcePath}`)
throw new Error(e.message)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册