From c0c85ee077bcd6ae68688e7cb6942cde14bc196d Mon Sep 17 00:00:00 2001 From: wolfstark <> Date: Thu, 16 Nov 2017 14:11:09 +0800 Subject: [PATCH] Fix # 1070 When index.html has a positional variable, the error can be printed correctly --- template/build/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/build/utils.js b/template/build/utils.js index 27f4bea66e..55c301fe8d 100644 --- a/template/build/utils.js +++ b/template/build/utils.js @@ -87,7 +87,7 @@ exports.createNotifierCallback = function () { } const error = errors[0] - const filename = error.file.split('!').pop() + const filename = error.file && error.file.split('!').pop() notifier.notify({ title: pkg.name, message: severity + ': ' + error.name,