mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 01:45:55 +08:00
AutoConfigure: Set an error if we get an oauth exception
This commit is contained in:
@ -46,7 +46,14 @@ class GitHostSetupAutoConfigureState extends State<GitHostSetupAutoConfigure> {
|
|||||||
try {
|
try {
|
||||||
gitHost.init((Exception error) async {
|
gitHost.init((Exception error) async {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
throw error;
|
if (mounted) {
|
||||||
|
setState(() {
|
||||||
|
errorMessage = error.toString();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
logException(error, StackTrace.current);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
Log.d("GitHost Initalized: " + widget.gitHostType.toString());
|
Log.d("GitHost Initalized: " + widget.gitHostType.toString());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user