mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #19757 from owncloud/remove-empty-box-during-update
[update] show default error message if empty message
This commit is contained in:
commit
1e79cc00a9
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue