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 {
7878 return frames ;
7979 }
8080
81- const result : StackFrame [ ] = await fromError ( exception ) ;
81+ const result : StackFrame [ ] = exception . stack ? await fromError ( exception ) : [ ] ;
8282 if ( ! result ) {
83- throw new Error ( "Unable to parse the exception stack trace. " ) ;
83+ throw new Error ( "Unable to parse the exception stack trace" ) ;
8484 }
8585
8686 // TODO: Test with reference error.
Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ export class NodeErrorPlugin implements IEventPlugin {
7272 return frames ;
7373 }
7474
75- const result = fromError ( exception ) ;
75+ const result = exception . stack ? fromError ( exception ) : [ ] ;
7676 if ( ! result ) {
77- throw new Error ( "Unable to parse the exception stack trace. " ) ;
77+ throw new Error ( "Unable to parse the exception stack trace" ) ;
7878 }
7979
8080 return Promise . resolve ( {
You can’t perform that action at this time.
0 commit comments