diff --git a/packages/angular/src/errorhandler.ts b/packages/angular/src/errorhandler.ts index 1e1ea12b7353..5b608d9bc4d0 100644 --- a/packages/angular/src/errorhandler.ts +++ b/packages/angular/src/errorhandler.ts @@ -109,7 +109,7 @@ class SentryErrorHandler implements AngularErrorHandler { } // ... or an`ErrorEvent`, which can provide us with the message but no stack... - if (error.error instanceof ErrorEvent) { + if (error.error instanceof ErrorEvent && error.error.message) { return error.error.message; }