From 32e1f6ccb3ec721ea7fb8ba350d733dfd3a8d2ad Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 8 Apr 2019 09:33:02 +1200 Subject: [PATCH] Fix guzzle noisiness There is no reason to echo the failure here --- CRM/Utils/Check/Component.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CRM/Utils/Check/Component.php b/CRM/Utils/Check/Component.php index a3818e8ea3..9b2a02938c 100644 --- a/CRM/Utils/Check/Component.php +++ b/CRM/Utils/Check/Component.php @@ -62,9 +62,9 @@ abstract class CRM_Utils_Check_Component { * Check if file exists on given URL. * * @param string $url - * @param int $timeout + * @param float $timeout + * * @return bool - * @throws \GuzzleHttp\Exception\GuzzleException */ public function fileExists($url, $timeout = 0.50) { $fileExists = FALSE; @@ -76,7 +76,8 @@ abstract class CRM_Utils_Check_Component { $fileExists = ($guzzleResponse->getStatusCode() == 200); } catch (Exception $e) { - echo $e->getMessage(); + // At this stage we are not checking for variants of not being able to receive it. + // However, we might later enhance this to distinguish forbidden from a 500 error. } return $fileExists; } -- 2.25.1