diff --git a/WordPressAuthenticator/Services/WordPressComBlogService.swift b/WordPressAuthenticator/Services/WordPressComBlogService.swift index 854bf5a7..0d83f9eb 100644 --- a/WordPressAuthenticator/Services/WordPressComBlogService.swift +++ b/WordPressAuthenticator/Services/WordPressComBlogService.swift @@ -43,7 +43,7 @@ class WordPressComBlogService { let site = WordPressComSiteInfo(remote: response) guard site.url != Constants.wordPressBlogURL else { - failure(WordPressOrgXMLRPCValidatorError.invalid) + failure(ServiceError.invalidWordPressAddress) return } success(site) @@ -63,5 +63,6 @@ extension WordPressComBlogService { enum ServiceError: Error { case unknown + case invalidWordPressAddress } } diff --git a/WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteAddressViewController.swift b/WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteAddressViewController.swift index 3591d6bd..23b33b28 100644 --- a/WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteAddressViewController.swift +++ b/WordPressAuthenticator/Unified Auth/View Related/Site Address/SiteAddressViewController.swift @@ -552,7 +552,7 @@ private extension SiteAddressViewController { self?.navigationController?.pushViewController(customUI, animated: true) } } else { - self.displayError(error, sourceTag: self.sourceTag) + self.displayError(message: Localization.invalidURL) } }) }