show error on demand
parent
876e27ae4e
commit
2531d4434c
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue