MOBILE-4059 core: Set login WS errors to critical

main
Noel De Martin 2022-10-19 09:47:04 +02:00
parent 5aad0b14e2
commit b933c92f69
1 changed files with 2 additions and 0 deletions

View File

@ -441,6 +441,7 @@ export class CoreSitesProvider {
if (data.errorcode && (data.errorcode == 'enablewsdescription' || data.errorcode == 'requirecorrectaccess')) {
throw await this.createCannotConnectLoginError(siteUrl, {
critical: data.errorcode == 'enablewsdescription',
errorcode: data.errorcode,
errorDetails: data.error,
});
@ -448,6 +449,7 @@ export class CoreSitesProvider {
if (data.error && data.error == 'Web services must be enabled in Advanced features.') {
throw await this.createCannotConnectLoginError(siteUrl, {
critical: true,
errorcode: 'enablewsdescription',
errorDetails: data.error,
});