File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class DefaultErrorParser implements IErrorParser {
47
47
48
48
const message = typeof ( exception ) === 'string' ? exception as any : undefined ;
49
49
return {
50
- type : stackTrace . name ,
50
+ type : stackTrace . name || 'Error' ,
51
51
message : stackTrace . message || exception . message || message ,
52
52
stack_trace : getStackFrames ( stackTrace . stack || [ ] )
53
53
} ;
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class NodeErrorParser implements IErrorParser {
33
33
34
34
const stackFrames = nodestacktrace . parse ( exception ) || [ ] ;
35
35
return {
36
- type : exception . name ,
36
+ type : exception . name || 'Error' ,
37
37
message : exception . message ,
38
38
stack_trace : getStackFrames ( stackFrames )
39
39
} ;
You can’t perform that action at this time.
0 commit comments