New error class

This commit is contained in:
estevez-dev
2019-04-19 21:43:52 +03:00
parent 5a8a207f2e
commit 209ccd4f7f
5 changed files with 131 additions and 127 deletions

View File

@ -33,7 +33,7 @@ class AuthManager {
flutterWebviewPlugin.close();
Logger.e("Error getting temp token: ${e.toString()}");
eventBus.fire(StartAuthEvent(oauthUrl, false));
completer.completeError({"errorCode": 61, "errorMessage": "Error getting temp token"});
completer.completeError(HAError("Error getting temp token"));
});
}
});