src/app/core/interceptors/error.interceptor.ts
Function intercept
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
return next.handle(request).pipe(catchError(err => {
const error = err.statusText || err.error.message;
if (err.status === 500) {
this.message = {