From 29f5daa9121591cb23f14c0df8535ad233689569 Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 12:36:16 +0800 Subject: [PATCH] i18n: live reload error --- _locales/en/messages.json | 4 ++++ content/install-user-css.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 721559ca..e7b0c537 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -498,6 +498,10 @@ "message": "Live reload", "description": "The label of live-reload feature" }, + "liveReloadError": { + "message": "An error occurred while watching the file", + "description": "The label of live-reload error" + }, "manageFilters": { "message": "Filters", "description": "Label for filters container" diff --git a/content/install-user-css.js b/content/install-user-css.js index 133124ba..150199c2 100644 --- a/content/install-user-css.js +++ b/content/install-user-css.js @@ -46,7 +46,9 @@ function createSourceLoader() { return cb(source); } }) - .catch(console.log) + .catch(error => { + console.log(t('liveReloadError', error)); + }) .then(() => { timer = setTimeout(check, DELAY); });