Skip to content

Commit

Permalink
Merge pull request appwrite#5924 from appwrite/christyjacob4-patch-1
Browse files Browse the repository at this point in the history
fix: error in initialising the Exception constructor in api.php
  • Loading branch information
christyjacob4 authored Aug 1, 2023
2 parents 887abad + f6d2df8 commit fcd4a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/shared/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$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] ?? '';
Expand Down

0 comments on commit fcd4a69

Please sign in to comment.