1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Merge pull request #5924 from appwrite/christyjacob4-patch-1

fix: error in initialising the Exception constructor in api.php
This commit is contained in:
Christy Jacob 2023-08-01 20:51:49 +04:00 committed by GitHub
commit fcd4a69ad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ $parseLabel = function (string $label, array $responsePayload, array $requestPar
$parts = explode('.', $match);
if (count($parts) !== 2) {
throw new Exception('Too less or too many parts', 400, Exception::GENERAL_ARGUMENT_INVALID);
throw new Exception(Exception::GENERAL_SERVER_ERROR, "The server encountered an error while parsing the label: $label. Please create an issue on GitHub to allow us to investigate further https://github.com/appwrite/appwrite/issues/new/choose");
}
$namespace = $parts[0] ?? '';