forked from CIT/Vmeda.Online
		
	Merge pull request #1577 from dpalou/MOBILE-2699
MOBILE-2699 login: Fix detailed error messages with http
This commit is contained in:
		
						commit
						47d57a343d
					
				| @ -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) || | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user