mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
GitHost AutoConfigure: Handle errors a bit better
This commit is contained in:
@ -30,7 +30,7 @@ class GitHub implements GitHost {
|
||||
var authCode = uri.queryParameters['code'];
|
||||
if (authCode == null) {
|
||||
print("GitHub: Missing auth code. Now what?");
|
||||
callback();
|
||||
throw GitHostException.OAuthFailed;
|
||||
}
|
||||
|
||||
this._accessCode = await _getAccessCode(authCode);
|
||||
@ -51,7 +51,7 @@ class GitHub implements GitHost {
|
||||
response.statusCode.toString() +
|
||||
": " +
|
||||
response.body);
|
||||
return null;
|
||||
throw GitHostException.OAuthFailed;
|
||||
}
|
||||
print("GithubResponse: " + response.body);
|
||||
|
||||
|
Reference in New Issue
Block a user