Skip to content

Commit 0b9a878

Browse files
committed
Flag repair errors as error level in eventSource->send
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 9a29025 commit 0b9a878

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/ajax/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function handleRepairFeedback(Event $event): void {
9292
} elseif ($event instanceof RepairWarningEvent) {
9393
$this->eventSource->send('notice', $this->l10n->t('Repair warning:') . ' ' . $event->getMessage());
9494
} elseif ($event instanceof RepairErrorEvent) {
95-
$this->eventSource->send('notice', $this->l10n->t('Repair error:') . ' ' . $event->getMessage());
95+
$this->eventSource->send('error', $this->l10n->t('Repair error:') . ' ' . $event->getMessage());
9696
}
9797
}
9898
}

lib/public/IEventSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface IEventSource {
3535
/**
3636
* send a message to the client
3737
*
38-
* @param string $type
38+
* @param string $type One of success, notice, error, failure and done. Used in core/js/update.js
3939
* @param mixed $data
4040
*
4141
* if only one parameter is given, a typeless message will be send with that parameter as data

0 commit comments

Comments
 (0)