SUPPORT-8897: Fix
This commit is contained in:
parent
247c5fe46c
commit
5a653cac06
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue