i18n: live reload error

This commit is contained in:
eight 2017-11-09 12:36:16 +08:00
parent 1dd0dbf907
commit 29f5daa912
2 changed files with 7 additions and 1 deletions

View File

@ -498,6 +498,10 @@
"message": "Live reload", "message": "Live reload",
"description": "The label of live-reload feature" "description": "The label of live-reload feature"
}, },
"liveReloadError": {
"message": "An error occurred while watching the file",
"description": "The label of live-reload error"
},
"manageFilters": { "manageFilters": {
"message": "Filters", "message": "Filters",
"description": "Label for filters container" "description": "Label for filters container"

View File

@ -46,7 +46,9 @@ function createSourceLoader() {
return cb(source); return cb(source);
} }
}) })
.catch(console.log) .catch(error => {
console.log(t('liveReloadError', error));
})
.then(() => { .then(() => {
timer = setTimeout(check, DELAY); timer = setTimeout(check, DELAY);
}); });