1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

Merge pull request #7375 from appwrite/fix-sentry-errors

Update exception for github session not found
This commit is contained in:
Eldad A. Fux 2024-02-18 22:37:00 +01:00 committed by GitHub
commit ad78259c10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ $getUserGitHub = function (string $userId, Document $project, Database $dbForPro
}
if (empty($gitHubSession)) {
throw new Exception(Exception::GENERAL_UNKNOWN, 'GitHub session not found.');
throw new Exception(Exception::USER_SESSION_NOT_FOUND, 'GitHub session not found.');
}
$provider = $gitHubSession->getAttribute('provider', '');