diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 18:32:20 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-08-25 18:32:20 +0200 |
commit | 0b9a878250d79101756d881d15d22acda2dbeddc (patch) | |
tree | 11a489d9560d9b81c83a22ad8433dbf7e7ac7e4f | |
parent | 9a2902553495baa6fb1515176a8bbaab5633fb58 (diff) | |
download | nextcloud-server-0b9a878250d79101756d881d15d22acda2dbeddc.tar.gz nextcloud-server-0b9a878250d79101756d881d15d22acda2dbeddc.zip |
Flag repair errors as error level in eventSource->send
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | core/ajax/update.php | 2 | ||||
-rw-r--r-- | lib/public/IEventSource.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 0fe398df7bf..56dffef409c 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -92,7 +92,7 @@ class FeedBackHandler { } elseif ($event instanceof RepairWarningEvent) { $this->eventSource->send('notice', $this->l10n->t('Repair warning:') . ' ' . $event->getMessage()); } elseif ($event instanceof RepairErrorEvent) { - $this->eventSource->send('notice', $this->l10n->t('Repair error:') . ' ' . $event->getMessage()); + $this->eventSource->send('error', $this->l10n->t('Repair error:') . ' ' . $event->getMessage()); } } } diff --git a/lib/public/IEventSource.php b/lib/public/IEventSource.php index 85f09837125..879b365cc77 100644 --- a/lib/public/IEventSource.php +++ b/lib/public/IEventSource.php @@ -35,7 +35,7 @@ interface IEventSource { /** * send a message to the client * - * @param string $type + * @param string $type One of success, notice, error, failure and done. Used in core/js/update.js * @param mixed $data * * if only one parameter is given, a typeless message will be send with that parameter as data |