From 2f9f9636162710b45f16a69b72fc68902f49b6ae Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 14 Oct 2015 08:17:52 +0200 Subject: [PATCH] [update] show default error message if empty message --- core/js/update.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/js/update.js b/core/js/update.js index fd3c7a56bd..79bf7c5ffb 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.'); $('').addClass('error').append(message).append('
').appendTo($el); message = t('core', 'Please reload the page.'); $('').addClass('error').append(message).append('
').appendTo($el);