mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 08:01:10 +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"),
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Not authorized"),
|
||||||
NSUnderlyingErrorKey : authParseError
|
NSUnderlyingErrorKey : authParseError
|
||||||
}];
|
}];
|
||||||
|
} else {
|
||||||
|
error = [NSError errorWithDomain:kBITAuthenticatorErrorDomain
|
||||||
|
code:BITAuthenticatorErrorUnknown
|
||||||
|
userInfo:@{
|
||||||
|
NSLocalizedDescriptionKey : BITHockeyLocalizedString(@"Failed to authenticate. Please try again later."),
|
||||||
|
NSUnderlyingErrorKey : authParseError
|
||||||
|
}];
|
||||||
}
|
}
|
||||||
completion(NO, error);
|
completion(NO, error);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user