mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
FixCI/CD failures
This commit is contained in:
parent
c0ae2e6549
commit
ecb48b389e
1 changed files with 2 additions and 2 deletions
|
|
@ -244,8 +244,8 @@ class Exception extends \Exception
|
||||||
{
|
{
|
||||||
$this->errors = Config::getParam('errors');
|
$this->errors = Config::getParam('errors');
|
||||||
$this->type = $type;
|
$this->type = $type;
|
||||||
$this->code = $this->errors[$type]['code'] ?? $code;
|
$this->code = $code ?? $this->errors[$type]['code'];
|
||||||
$this->message = $this->errors[$type]['description'] ?? $message;
|
$this->message = $message ?? $this->errors[$type]['description'];
|
||||||
|
|
||||||
$this->publish = $this->errors[$type]['publish'] ?? ($this->code >= 500);
|
$this->publish = $this->errors[$type]['publish'] ?? ($this->code >= 500);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue