diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-14 12:37:13 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-14 12:37:13 +0200 |
commit | 1e79cc00a981e1cb19cc841dca58fa68bc4b78e8 (patch) | |
tree | fd0f2df68362273fd835c6d8ff37d73886aedd56 /core/js | |
parent | 6a07406132e067dc20832f5da27d1df97e3471f6 (diff) | |
parent | 2f9f9636162710b45f16a69b72fc68902f49b6ae (diff) | |
download | nextcloud-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.js | 1 |
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); |