mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
always provide an error to the viewcontroller
This commit is contained in:
parent
c44c923819
commit
53f851afc5
@ -345,6 +345,13 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
|
||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized"),
|
||||
NSUnderlyingErrorKey : authParseError
|
||||
}];
|
||||
} else {
|
||||
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||
code:BITAuthenticatorErrorUnknown
|
||||
userInfo:@{
|
||||
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Failed to authenticate. Please try again later."),
|
||||
NSUnderlyingErrorKey : authParseError
|
||||
}];
|
||||
}
|
||||
completion(NO, error);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user