@@ -3,6 +3,7 @@ import styled from '@emotion/styled';
3
3
import { Button } from 'sentry/components/button' ;
4
4
import { hasExceptionGroupTree } from 'sentry/components/events/interfaces/frame/utils' ;
5
5
import KeyValueList from 'sentry/components/events/interfaces/keyValueList' ;
6
+ import { t } from 'sentry/locale' ;
6
7
import { space } from 'sentry/styles/space' ;
7
8
import { EntryType , Event , ExceptionValue , StackTraceMechanism } from 'sentry/types' ;
8
9
import { defined } from 'sentry/utils' ;
@@ -19,8 +20,16 @@ type ExceptionTreeProps = {
19
20
parentException ?: ExceptionValue ;
20
21
} ;
21
22
23
+ function getExceptionName ( exception : ExceptionValue ) {
24
+ if ( exception . type ) {
25
+ return exception . value ? `${ exception . type } : ${ exception . value } ` : exception . type ;
26
+ }
27
+
28
+ return exception . value ?? t ( 'Exception' ) ;
29
+ }
30
+
22
31
function ExceptionLink ( { exception, link} : { exception : ExceptionValue ; link : boolean } ) {
23
- const exceptionName = exception . type || exception . value ;
32
+ const exceptionName = getExceptionName ( exception ) ;
24
33
25
34
if ( ! defined ( exception . mechanism ?. exception_id ) || ! link ) {
26
35
return < div > { exceptionName } </ div > ;
@@ -138,6 +147,7 @@ export function ExceptionGroupContext({
138
147
}
139
148
140
149
const TreeChildLineSvg = styled ( 'svg' ) `
150
+ flex-shrink: 0;
141
151
position: absolute;
142
152
left: 6px;
143
153
bottom: 50%;
@@ -154,6 +164,7 @@ const TreeItem = styled('div')<{level: number}>`
154
164
` ;
155
165
156
166
const Circle = styled ( 'div' ) `
167
+ flex-shrink: 0;
157
168
border-radius: 50%;
158
169
height: 12px;
159
170
width: 12px;
0 commit comments