AutoConfigure: Set an error if we get an oauth exception

This commit is contained in:
Vishesh Handa
2020-11-10 18:47:13 +01:00
parent 7171b1e99f
commit bfe2456d3b

View File

@ -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());