Skip to content

Commit 096fe18

Browse files
wolfstarkLinusBorg
authored andcommitted
Fix # 1070 When index.html has a positional variable, the error can be printed correctly (#1071)
1 parent 472c561 commit 096fe18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/build/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ exports.createNotifierCallback = function () {
8787
}
8888
const error = errors[0]
8989

90-
const filename = error.file.split('!').pop()
90+
const filename = error.file && error.file.split('!').pop()
9191
notifier.notify({
9292
title: pkg.name,
9393
message: severity + ': ' + error.name,

0 commit comments

Comments
 (0)