From ecb48b389eb97fae71ba89f1d575ddd9abfbfa9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 26 Jan 2024 12:22:06 +0000 Subject: [PATCH] FixCI/CD failures --- src/Appwrite/Extend/Exception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index 605290d50e..195eedb353 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -244,8 +244,8 @@ class Exception extends \Exception { $this->errors = Config::getParam('errors'); $this->type = $type; - $this->code = $this->errors[$type]['code'] ?? $code; - $this->message = $this->errors[$type]['description'] ?? $message; + $this->code = $code ?? $this->errors[$type]['code']; + $this->message = $message ?? $this->errors[$type]['description']; $this->publish = $this->errors[$type]['publish'] ?? ($this->code >= 500);