mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
Remove redundent AppwriteException
This commit is contained in:
parent
e15afe65c0
commit
9d14fc75f1
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ require_once __DIR__ . '/../init.php';
|
|||
use Appwrite\Event\Certificate;
|
||||
use Appwrite\Event\Event;
|
||||
use Appwrite\Event\Usage;
|
||||
use Appwrite\Extend\Exception;
|
||||
use Appwrite\Extend\Exception as AppwriteException;
|
||||
use Appwrite\Network\Validator\Origin;
|
||||
use Appwrite\Utopia\Request;
|
||||
|
|
@ -367,7 +366,7 @@ App::init()
|
|||
$message = empty($request->getHeader('x-appwrite-project')) ?
|
||||
'No Appwrite project was specified. Please specify your Appwrite Project ID in the "x-appwrite-project" header or when you initialize your Appwrite SDK.' :
|
||||
'This endpoint is not available for the console project. The Appwrite Console is a reserved project ID and cannot be used with the Appwrite SDKs and APIs. Please check if your project ID is correct.';
|
||||
throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, $message);
|
||||
throw new AppwriteException(Exception::GENERAL_ACCESS_FORBIDDEN, $message);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue