Skip to content

Commit deb8f44

Browse files
committed
improve compile-time syntax error warning
1 parent 9bbb54b commit deb8f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template-compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = function (html) {
6666
if (compiled.errors.length) {
6767
var self = this
6868
compiled.errors.forEach(function (err) {
69-
self.emitError('template syntax error ' + err)
69+
self.emitError('\n Vue template syntax error:\n\n ' + err + '\n')
7070
})
7171
code = 'module.exports={render:function(){},staticRenderFns:[]}'
7272
} else {

0 commit comments

Comments
 (0)