summaryrefslogtreecommitdiffstats
path: root/core/js/update.js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-10-14 08:17:52 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-10-14 09:41:47 +0200
commit2f9f9636162710b45f16a69b72fc68902f49b6ae (patch)
tree12afb29c003cd70efc8c4598fbb0c7f085b6c319 /core/js/update.js
parentf9dd750ed7e4986a36c1119865ba68c08ffd721b (diff)
downloadnextcloud-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.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);