From 2531d4434c8e526abc5e1d43dec8373198f33731 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 23 Jul 2023 11:17:11 +0200 Subject: [PATCH] show error on demand --- src/Utils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Utils.php b/src/Utils.php index 1442886..698288a 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -167,7 +167,9 @@ class Utils throw new Exception('bad API response'); } } catch (Exception $e) { - dcCore::app()->error->add(__('Dotclear.watch report failed')); + if ($force) { + dcCore::app()->error->add(__('Dotclear.watch report failed')); + } } }