mirror of https://github.com/nextcloud/server
Flag repair errors as error level in eventSource->send
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9a29025534
commit
0b9a878250
|
@ -92,7 +92,7 @@ class FeedBackHandler {
|
||||||
} elseif ($event instanceof RepairWarningEvent) {
|
} elseif ($event instanceof RepairWarningEvent) {
|
||||||
$this->eventSource->send('notice', $this->l10n->t('Repair warning:') . ' ' . $event->getMessage());
|
$this->eventSource->send('notice', $this->l10n->t('Repair warning:') . ' ' . $event->getMessage());
|
||||||
} elseif ($event instanceof RepairErrorEvent) {
|
} 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ interface IEventSource {
|
||||||
/**
|
/**
|
||||||
* send a message to the client
|
* 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
|
* @param mixed $data
|
||||||
*
|
*
|
||||||
* if only one parameter is given, a typeless message will be send with that parameter as data
|
* if only one parameter is given, a typeless message will be send with that parameter as data
|
||||||
|
|
Loading…
Reference in New Issue