mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix formatting
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user