Skip to content

Commit 31d8e30

Browse files
authored
chore: fix error handler name in angular docs (#492)
1 parent 533f0bf commit 31d8e30

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/cdn_angular.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import { ErrorHandler } from "@angular/core";
6767

6868
declare function cwr(operation: string, payload: any): void;
6969

70-
export class CwrErrorHandler implements ErrorHandler {
70+
export class RumErrorHandler implements ErrorHandler {
7171
handleError(error: any) {
7272
cwr('recordError', error);
7373
}
@@ -79,7 +79,6 @@ export class CwrErrorHandler implements ErrorHandler {
7979
`src/app/app.module.ts`
8080
```typescript
8181
import { RumErrorHandler } from './cwr-error-handler';
82-
8382
@NgModule({
8483
imports: [
8584
...
@@ -93,10 +92,10 @@ import { RumErrorHandler } from './cwr-error-handler';
9392
providers: [
9493
{
9594
provide: ErrorHandler,
96-
useClass: CwrErrorHandler
95+
useClass: RumErrorHandler
9796
}
9897
]
9998
})
10099
export class AppModule { }
101100

102-
```
101+
```

0 commit comments

Comments
 (0)