always provide an error to the viewcontroller

This commit is contained in:
Stephan Diederich 2013-09-11 16:17:13 +02:00
parent c44c923819
commit 53f851afc5

View File

@ -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 {