1
0
Fork 0
mirror of synced 2024-07-06 15:11:21 +12:00

Update app/controllers/general.php

This commit is contained in:
Jake Barnby 2024-04-29 16:52:46 +12:00 committed by GitHub
parent 6a2b40db50
commit 9a7c424e85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -364,7 +364,7 @@ App::init()
->action(function (Document $project, Appwrite\Utopia\Request $request) {
if ($project->getId() === 'console') {
$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.' :
'No Appwrite project was specified. Please specify your project ID when initializing 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 AppwriteException(AppwriteException::GENERAL_ACCESS_FORBIDDEN, $message);
}