File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/browser/src/integrations Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
5
5
- [ browser] ref: Expose ` ReportDialogOptions `
6
+ - [ browser] ref: Use better default message for ReportingObserver
6
7
7
8
## 4.0.4
8
9
Original file line number Diff line number Diff line change @@ -114,10 +114,11 @@ export class ReportingObserver implements Integration {
114
114
115
115
if ( report . type === ReportTypes . Crash ) {
116
116
const body = report . body as CrashReportBody ;
117
- details = `${ body . crashId } ${ body . reason } ` ;
117
+ // A fancy way to create a message out of crashId OR reason OR both OR fallback
118
+ details = [ body . crashId || '' , body . reason || '' ] . join ( ' ' ) . trim ( ) || details ;
118
119
} else {
119
120
const body = report . body as DeprecationReportBody | InterventionReportBody ;
120
- details = body . message ;
121
+ details = body . message || details ;
121
122
}
122
123
}
123
124
You can’t perform that action at this time.
0 commit comments