add error handler
This commit is contained in:
8
src/app/ErrorHandler.ts
Normal file
8
src/app/ErrorHandler.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import {ErrorHandler as NgErrorHandler} from "@angular/core";
|
||||
|
||||
|
||||
export class ErrorHandler implements NgErrorHandler {
|
||||
handleError(error: any): void {
|
||||
console.warn(error);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user