SUPPORT-8897: Fix

This commit is contained in:
Eduard Tihomirov 2025-02-18 14:56:03 +03:00
parent 247c5fe46c
commit 5a653cac06
2 changed files with 3 additions and 3 deletions

View file

@ -48,7 +48,7 @@ export abstract class AuthGuard implements CanActivate {
? reason.error.messages
: reason.error.replaceAll('\\', '');
if (error) {
errorMessage = 'Произошла неизвестная ошибка. Обратитесь к системному администратору';
errorMessage = 'Система временно недоступна. Пожалуйста, повторите попытку позже.';
let errorCode = this.extractCode(errorDescription);
if (errorCode) {
errorMessage = EsiaErrorDetail.getDescription(errorCode);

View file

@ -2,7 +2,7 @@ import {
HttpEvent,
HttpHandler,
HttpInterceptor,
HttpRequest
HttpRequest, HttpResponse
} from "@angular/common/http";
import {
HttpSecurityErrorInterceptor,
@ -33,7 +33,7 @@ export class ErvuHttpSecurityErrorInterceptor extends HttpSecurityErrorIntercept
}
else {
return from(this.authService.redirectToEsia()).pipe(
map(() => null),
map(() => new HttpResponse<any>()),
catchError((err) => {
throw err;
})