[update] show default error message if empty message

This commit is contained in:
Morris Jobke 2015-10-14 08:17:52 +02:00
parent f9dd750ed7
commit 2f9f963616
1 changed files with 1 additions and 0 deletions

View File

@ -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);