From 86290bba58d784e9962a05c1a2133a2d2ee1f4af Mon Sep 17 00:00:00 2001 From: "Tanner W. Stokes" Date: Thu, 6 Jan 2022 16:57:38 -0500 Subject: [PATCH 1/2] Improve error description --- WordPressAuthenticator/Services/WordPressXMLRPCAPIFacade.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WordPressAuthenticator/Services/WordPressXMLRPCAPIFacade.m b/WordPressAuthenticator/Services/WordPressXMLRPCAPIFacade.m index 3ab70f049..a30d31101 100644 --- a/WordPressAuthenticator/Services/WordPressXMLRPCAPIFacade.m +++ b/WordPressAuthenticator/Services/WordPressXMLRPCAPIFacade.m @@ -76,7 +76,8 @@ - (void)getBlogOptionsWithEndpoint:(NSURL *)xmlrpc dispatch_async(dispatch_get_main_queue(), ^{ if (![responseObject isKindOfClass:[NSDictionary class]]) { if (failure) { - NSError *error = [NSError errorWithDomain:WordPressOrgXMLRPCApiErrorDomain code:WordPressOrgXMLRPCApiErrorResponseSerializationFailed userInfo:nil]; + NSDictionary *userInfo = @{NSLocalizedDescriptionKey: NSLocalizedString(@"Unable to read the WordPress site at that URL. Tap 'Need Help?' to view the FAQ.", nil)}; + NSError *error = [NSError errorWithDomain:WordPressOrgXMLRPCApiErrorDomain code:WordPressOrgXMLRPCApiErrorResponseSerializationFailed userInfo:userInfo]; failure(error); } return; From 84414aa29851f95721d69159e4901041892adfb1 Mon Sep 17 00:00:00 2001 From: "Tanner W. Stokes" Date: Mon, 17 Jan 2022 21:11:39 -0500 Subject: [PATCH 2/2] Update Podspec to beta version. --- WordPressAuthenticator.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPressAuthenticator.podspec b/WordPressAuthenticator.podspec index 5e7f1bcea..d048b6237 100644 --- a/WordPressAuthenticator.podspec +++ b/WordPressAuthenticator.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = 'WordPressAuthenticator' - s.version = '1.42.2' + s.version = '1.43.0-beta.1' s.summary = 'WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps.' s.description = <<-DESC