Skip to content

Commit 7810af8

Browse files
authored
[Patch] Fix issue with no compiler errors
1 parent 0620217 commit 7810af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/template-compiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = function (html) {
6262
preserveWhitespace: options.preserveWhitespace
6363
}, defaultCompileOptions))
6464
var code
65-
if (compiled.errors.length) {
65+
if (compiled.errors && compiled.errors.length) {
6666
this.emitError(
6767
`\n Error compiling template:\n${pad(html)}\n` +
6868
compiled.errors.map(e => ` - ${e}`).join('\n') + '\n'

0 commit comments

Comments
 (0)