show error on demand

master
Jean-Christian Paul Denis 2023-07-23 11:17:11 +02:00
parent 876e27ae4e
commit 2531d4434c
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 3 additions and 1 deletions

View File

@ -167,9 +167,11 @@ class Utils
throw new Exception('bad API response'); throw new Exception('bad API response');
} }
} catch (Exception $e) { } catch (Exception $e) {
if ($force) {
dcCore::app()->error->add(__('Dotclear.watch report failed')); dcCore::app()->error->add(__('Dotclear.watch report failed'));
} }
} }
}
private static function check(): bool private static function check(): bool
{ {