fix: error in initialising the Exception constructor in api.php
This commit is contained in:
parent
887abad190
commit
3b4255c457
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ $parseLabel = function (string $label, array $responsePayload, array $requestPar
|
||||||
$parts = explode('.', $match);
|
$parts = explode('.', $match);
|
||||||
|
|
||||||
if (count($parts) !== 2) {
|
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");
|
||||||
}
|
}
|
||||||
|
|
||||||
$namespace = $parts[0] ?? '';
|
$namespace = $parts[0] ?? '';
|
||||||
|
|
Loading…
Reference in a new issue