瀏覽代碼

Flag repair errors as error level in eventSource->send

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v25.0.0beta4
Côme Chilliet 1 年之前
父節點
當前提交
0b9a878250
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 1
    1
      core/ajax/update.php
  2. 1
    1
      lib/public/IEventSource.php

+ 1
- 1
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());
}
}
}

+ 1
- 1
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

Loading…
取消
儲存