diff --git a/src/providers/sites.ts b/src/providers/sites.ts index 89e8bfe5b..324d46d7e 100644 --- a/src/providers/sites.ts +++ b/src/providers/sites.ts @@ -260,6 +260,10 @@ export class CoreSitesProvider { protocol = protocol == 'https://' ? 'http://' : 'https://'; return this.checkSiteWithProtocol(siteUrl, protocol).catch((secondError) => { + if (secondError.critical) { + return Promise.reject(secondError.error); + } + // Site doesn't exist. Return the error message. return Promise.reject(this.textUtils.getErrorMessageFromError(error) || this.textUtils.getErrorMessageFromError(secondError) ||