mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 17:29:50 +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 {
|
||||
gitHost.init((Exception error) async {
|
||||
if (error != null) {
|
||||
throw error;
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
errorMessage = error.toString();
|
||||
});
|
||||
}
|
||||
|
||||
logException(error, StackTrace.current);
|
||||
return;
|
||||
}
|
||||
Log.d("GitHost Initalized: " + widget.gitHostType.toString());
|
||||
|
||||
|
Reference in New Issue
Block a user