i18n: live reload error
This commit is contained in:
parent
1dd0dbf907
commit
29f5daa912
|
@ -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"
|
||||
|
|
|
@ -46,7 +46,9 @@ function createSourceLoader() {
|
|||
return cb(source);
|
||||
}
|
||||
})
|
||||
.catch(console.log)
|
||||
.catch(error => {
|
||||
console.log(t('liveReloadError', error));
|
||||
})
|
||||
.then(() => {
|
||||
timer = setTimeout(check, DELAY);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user