mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-01-31 00:23:57 +00:00
fix for sentry errors
This commit is contained in:
parent
5aeecb08a1
commit
4d6678fa4d
@ -5,7 +5,7 @@ import { SentryErrorHandler } from './sentry-error-handler';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class ToasterErrorHandler extends SentryErrorHandler {
|
export class ToasterErrorHandler extends SentryErrorHandler {
|
||||||
handleError(err: any): void {
|
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);
|
super.handleError(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,6 +476,10 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
|
|||||||
this.progressService.deactivate();
|
this.progressService.deactivate();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
error => {
|
||||||
|
this.toasterService.error(error.error.message);
|
||||||
|
this.progressService.deactivate();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user