Update toaster-error-handler.ts

This commit is contained in:
piotrpekala7 2020-07-22 17:58:00 +02:00
parent 2c9ea028d7
commit dea33c9992

View File

@ -5,7 +5,10 @@ import { SentryErrorHandler } from './sentry-error-handler';
@Injectable()
export class ToasterErrorHandler extends SentryErrorHandler {
handleError(err: any): void {
super.handleError(err);
if (err.error && err.error.status && err.error.status === 403) {} else {
super.handleError(err);
}
if (!err) return;
const toasterService = this.injector.get(ToasterService);