File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ export class BrowserErrorPlugin implements IEventPlugin {
78
78
return frames ;
79
79
}
80
80
81
- const result : StackFrame [ ] = await fromError ( exception ) ;
81
+ const result : StackFrame [ ] = exception . stack ? await fromError ( exception ) : [ ] ;
82
82
if ( ! result ) {
83
- throw new Error ( "Unable to parse the exception stack trace. " ) ;
83
+ throw new Error ( "Unable to parse the exception stack trace" ) ;
84
84
}
85
85
86
86
// TODO: Test with reference error.
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ export class NodeErrorPlugin implements IEventPlugin {
72
72
return frames ;
73
73
}
74
74
75
- const result = fromError ( exception ) ;
75
+ const result = exception . stack ? fromError ( exception ) : [ ] ;
76
76
if ( ! result ) {
77
- throw new Error ( "Unable to parse the exception stack trace. " ) ;
77
+ throw new Error ( "Unable to parse the exception stack trace" ) ;
78
78
}
79
79
80
80
return Promise . resolve ( {
You can’t perform that action at this time.
0 commit comments