mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-21 02:01:19 +00:00
Do not log HTTP 400 error to Sentry
This commit is contained in:
parent
55fe1e561a
commit
3667a4d755
@ -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 || err.error.status === 409)) {
|
||||
if (err.error && err.error.status && !(err.error.status === 400 || err.error.status === 403 || err.error.status === 404 || err.error.status === 409)) {
|
||||
super.handleError(err);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user