fix for sentry errors

This commit is contained in:
piotrpekala7 2020-08-07 09:45:36 +02:00
parent 5aeecb08a1
commit 4d6678fa4d
2 changed files with 5 additions and 1 deletions

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)) {
if (err.error && err.error.status && !(err.error.status === 403 || err.error.status === 404)) {
super.handleError(err);
}

View File

@ -476,6 +476,10 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
this.progressService.deactivate();
}
});
},
error => {
this.toasterService.error(error.error.message);
this.progressService.deactivate();
});
}