Update toaster-error-handler.ts

This commit is contained in:
piotrpekala7 2020-09-07 00:42:21 +02:00
parent 61d4e2461f
commit fe02a4cb79

View File

@ -5,7 +5,7 @@ import { SentryErrorHandler } from './sentry-error-handler';
@Injectable()
export class ToasterErrorHandler extends SentryErrorHandler {
handleError(err: any): void {
if (err.error && err.error.status && !(err.error.status === 403 || err.error.status === 404)) {
if (err.error && err.error.status && !(err.error.status === 403 || err.error.status === 404 || err.error.status === 409)) {
super.handleError(err);
}