From dc0c688ec802293210b3e289de7a66ce6eefb7f2 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 26 Nov 2019 17:17:00 +0800 Subject: [PATCH] feat(v3): add resource path for compile error --- packages/uni-template-compiler/lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-template-compiler/lib/index.js b/packages/uni-template-compiler/lib/index.js index cacdda93a..f8c45f2d2 100644 --- a/packages/uni-template-compiler/lib/index.js +++ b/packages/uni-template-compiler/lib/index.js @@ -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) } } -- GitLab