Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 86290bb

Browse files
committed
Improve error description
1 parent ac99e04 commit 86290bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WordPressAuthenticator/Services/WordPressXMLRPCAPIFacade.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ - (void)getBlogOptionsWithEndpoint:(NSURL *)xmlrpc
7676
dispatch_async(dispatch_get_main_queue(), ^{
7777
if (![responseObject isKindOfClass:[NSDictionary class]]) {
7878
if (failure) {
79-
NSError *error = [NSError errorWithDomain:WordPressOrgXMLRPCApiErrorDomain code:WordPressOrgXMLRPCApiErrorResponseSerializationFailed userInfo:nil];
79+
NSDictionary *userInfo = @{NSLocalizedDescriptionKey: NSLocalizedString(@"Unable to read the WordPress site at that URL. Tap 'Need Help?' to view the FAQ.", nil)};
80+
NSError *error = [NSError errorWithDomain:WordPressOrgXMLRPCApiErrorDomain code:WordPressOrgXMLRPCApiErrorResponseSerializationFailed userInfo:userInfo];
8081
failure(error);
8182
}
8283
return;

0 commit comments

Comments
 (0)