1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

Add Custom ErrorHandler (#8543)

This commit is contained in:
Justin Baur
2024-04-01 14:29:04 -05:00
committed by GitHub
parent 136226b6be
commit 45f9f5695e
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
import { ErrorHandler, Injectable } from "@angular/core";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
@Injectable()
export class LoggingErrorHandler extends ErrorHandler {
constructor(private readonly logService: LogService) {
super();
}
override handleError(error: any): void {
this.logService.error(error);
}
}