1
0
Fork 0
mirror of synced 2024-07-02 13:10:38 +12:00

Fix formatting

This commit is contained in:
Matej Bačo 2023-09-05 13:16:20 +02:00
parent 5538c47b3f
commit 79726dbfb6
2 changed files with 2 additions and 2 deletions

View file

@ -250,7 +250,7 @@ App::get('/v1/vcs/github/authorize')
$appName = App::getEnv('_APP_VCS_GITHUB_APP_NAME');
if(empty($appName)) {
if (empty($appName)) {
throw new Exception(Exception::GENERAL_SERVER_ERROR, 'GitHub App name is not configured. Please configure VCS (Version Control System) variables in .env file.');
}

View file

@ -19,7 +19,7 @@ class Exception extends AppwriteException
if (\is_array($decoded['error'] ?? '')) {
$this->error = $decoded['error']['status'] ?? 'Unknown error';
$this->errorDescription = $decoded['error']['message'] ?? 'No description';
} else if (\is_array($decoded['errors'] ?? '')) {
} elseif (\is_array($decoded['errors'] ?? '')) {
$this->error = $decoded['error'] ?? $decoded['message'] ?? 'Unknown error';
$this->errorDescription = $decoded['errors'][0]['message'] ?? 'No description';
} else {