mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update src/Appwrite/Extend/Exception.php
This commit is contained in:
@@ -302,7 +302,6 @@ class Exception extends \Exception
|
||||
$this->type = $type;
|
||||
$this->code = $code ?? $this->errors[$type]['code'];
|
||||
|
||||
// todo: Handle better PDOExceptions or string errors
|
||||
if(\is_string($this->code) && !\is_numeric($this->code)) {
|
||||
$this->code = 500;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user