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.messages
: reason.error.replaceAll('\\', ''); : reason.error.replaceAll('\\', '');
if (error) { if (error) {
errorMessage = 'Произошла неизвестная ошибка. Обратитесь к системному администратору'; errorMessage = 'Система временно недоступна. Пожалуйста, повторите попытку позже.';
let errorCode = this.extractCode(errorDescription); let errorCode = this.extractCode(errorDescription);
if (errorCode) { if (errorCode) {
errorMessage = EsiaErrorDetail.getDescription(errorCode); errorMessage = EsiaErrorDetail.getDescription(errorCode);

View file

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