From 71ca142a58980bc8d6ee3424cf0f4e914f4bf9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 24 Aug 2021 11:18:24 +0200 Subject: [PATCH] Fix warning for auth fail dont print in log --- src/WordPress/WPCrm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WordPress/WPCrm.php b/src/WordPress/WPCrm.php index a19ab8a..f362020 100644 --- a/src/WordPress/WPCrm.php +++ b/src/WordPress/WPCrm.php @@ -430,6 +430,7 @@ class WPCrm } catch (ApiErrorException $e) { switch ($e->getApiError()) { case ApiError::apiAuthFailed(): + throw $e; default: self::logError($e->getMessage()); throw $e;