mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
Update src/Appwrite/Extend/Exception.php
This commit is contained in:
parent
acfd6633a2
commit
c7f2de6500
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ class Exception extends \Exception
|
|||
$this->code = $code ?? $this->errors[$type]['code'];
|
||||
|
||||
// todo: Handle better PDOExceptions or string errors
|
||||
if(is_string($this->code)) {
|
||||
if(\is_string($this->code) && !\is_numeric($this->code)) {
|
||||
$this->code = 500;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue