summaryrefslogtreecommitdiffstats
path: root/core/js/update.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/update.js')
-rw-r--r--core/js/update.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/update.js b/core/js/update.js
index fd3c7a56bd6..79bf7c5ffbe 100644
--- a/core/js/update.js
+++ b/core/js/update.js
@@ -45,6 +45,7 @@
hasWarnings = true;
});
updateEventSource.listen('error', function(message) {
+ message = message || t('core', 'An error occurred.');
$('<span>').addClass('error').append(message).append('<br />').appendTo($el);
message = t('core', 'Please reload the page.');
$('<span>').addClass('error').append(message).append('<br />').appendTo($el);