commit 1b491152eb25d41584cab4fc06603eeb110882c1
parent 3fab015db733ffc6a53521746f3e86d7180b6b94
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 26 Feb 2018 20:18:07 +0100
Fix logic
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
@@ -28,7 +28,7 @@ Raven
export class RavenErrorHandler implements ErrorHandler {
handleError(err: any ): void {
- if (err !== typeof Error) {
+ if (err instanceof Error) {
Raven.captureException(err);
} else {
Raven.captureException(new Error(JSON.stringify(err)));