1
0
Fork 0
mirror of synced 2024-10-01 17:58:02 +13:00

Update exception for github session not found

This commit is contained in:
Khushboo Verma 2024-01-02 16:20:20 +05:30
parent f14250bf2a
commit 671b1624d5

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', '');