[update] show default error message if empty message
This commit is contained in:
parent
f9dd750ed7
commit
2f9f963616
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue