File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ export function captureException(exception: any): string {
28
28
} catch ( exception ) {
29
29
syntheticException = exception as Error ;
30
30
}
31
- return callOnHub ( 'captureException' , exception , { syntheticException } ) ;
31
+ return callOnHub ( 'captureException' , exception , {
32
+ originalException : exception ,
33
+ syntheticException,
34
+ } ) ;
32
35
}
33
36
34
37
/**
@@ -45,7 +48,10 @@ export function captureMessage(message: string, level?: Severity): string {
45
48
} catch ( exception ) {
46
49
syntheticException = exception as Error ;
47
50
}
48
- return callOnHub ( 'captureMessage' , message , level , { syntheticException } ) ;
51
+ return callOnHub ( 'captureMessage' , message , level , {
52
+ originalException : message ,
53
+ syntheticException,
54
+ } ) ;
49
55
}
50
56
51
57
/**
You can’t perform that action at this time.
0 commit comments