Move error handler to error interceptor.

This commit is contained in:
Spencer Ofwiti
2021-03-21 16:11:05 +03:00
parent b5c9699e2c
commit f12e69b5df
4 changed files with 55 additions and 40 deletions

View File

@@ -44,7 +44,7 @@ import {MutablePgpKeyStore} from '@app/_pgp';
GlobalErrorHandler,
{ provide: ErrorHandler, useClass: GlobalErrorHandler },
{ provide: HTTP_INTERCEPTORS, useClass: HttpConfigInterceptor, multi: true },
// { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
// { provide: HTTP_INTERCEPTORS, useClass: LoggingInterceptor, multi: true },
],
bootstrap: [AppComponent]