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 33## Unreleased
44
55- [ browser] ref: Expose ` ReportDialogOptions `
6+ - [ browser] ref: Use better default message for ReportingObserver
67
78## 4.0.4
89
Original file line number Diff line number Diff line change @@ -114,10 +114,11 @@ export class ReportingObserver implements Integration {
114114
115115 if ( report . type === ReportTypes . Crash ) {
116116 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 ;
118119 } else {
119120 const body = report . body as DeprecationReportBody | InterventionReportBody ;
120- details = body . message ;
121+ details = body . message || details ;
121122 }
122123 }
123124
You can’t perform that action at this time.
0 commit comments