Skip to content

Commit b1d09c1

Browse files
authored
Use originalError if present in ng2 example
`originalError` is not present for failed Promises caught by zone (example[(http://plnkr.co/edit/9M2jYlsLykjXUkDnI0E7)])
1 parent 0dd3675 commit b1d09c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/integrations/angular2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Then, in your main module file (where ``@NgModule`` is called, e.g. app.module.t
6969
7070
export class RavenErrorHandler implements ErrorHandler {
7171
handleError(err:any) : void {
72-
Raven.captureException(err);
72+
Raven.captureException(err.originalError || err);
7373
}
7474
}
7575

0 commit comments

Comments
 (0)