aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-14 12:37:13 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-14 12:37:13 +0200
commit1e79cc00a981e1cb19cc841dca58fa68bc4b78e8 (patch)
treefd0f2df68362273fd835c6d8ff37d73886aedd56 /core/js
parent6a07406132e067dc20832f5da27d1df97e3471f6 (diff)
parent2f9f9636162710b45f16a69b72fc68902f49b6ae (diff)
downloadnextcloud-server-1e79cc00a981e1cb19cc841dca58fa68bc4b78e8.tar.gz
nextcloud-server-1e79cc00a981e1cb19cc841dca58fa68bc4b78e8.zip
Merge pull request #19757 from owncloud/remove-empty-box-during-update
[update] show default error message if empty message
Diffstat (limited to 'core/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);