Error handling improvements

This commit is contained in:
Yegor Vialov
2020-05-01 16:24:13 +00:00
parent 7a0ce93cfd
commit 46ca1948e2
8 changed files with 24 additions and 25 deletions

View File

@ -31,7 +31,7 @@ class AuthManager {
eventBus.fire(StartAuthEvent(oauthUrl, false));
completer.complete(tempToken);
}).catchError((e) {
Logger.e("Error getting temp token: ${e.toString()}");
Logger.e("Error getting temp token: $e");
eventBus.fire(StartAuthEvent(oauthUrl, false));
completer.completeError(HACException("Error getting temp token"));
}).whenComplete(() => flutterWebviewPlugin.close());