diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-10-14 08:17:52 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-10-14 09:41:47 +0200 |
commit | 2f9f9636162710b45f16a69b72fc68902f49b6ae (patch) | |
tree | 12afb29c003cd70efc8c4598fbb0c7f085b6c319 /core/js/update.js | |
parent | f9dd750ed7e4986a36c1119865ba68c08ffd721b (diff) | |
download | nextcloud-server-2f9f9636162710b45f16a69b72fc68902f49b6ae.tar.gz nextcloud-server-2f9f9636162710b45f16a69b72fc68902f49b6ae.zip |
[update] show default error message if empty message
Diffstat (limited to 'core/js/update.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); |