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

Commit 97a835c

Browse files
authored
Merge pull request #632 from wordpress-mobile/feature/xml-rpc-errors
Improve error description
2 parents ac99e04 + 84414aa commit 97a835c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Pod::Spec.new do |s|
44
s.name = 'WordPressAuthenticator'
5-
s.version = '1.42.2'
5+
s.version = '1.43.0-beta.1'
66

77
s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.'
88
s.description = <<-DESC

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)