File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,14 @@ export namespace NATIVE {
389
389
Object . keys ( otherOptions ) . forEach ( k => {
390
390
const methodName = `set${ capitalize ( k ) } ` ;
391
391
if ( typeof config [ methodName ] === 'function' ) {
392
- config [ methodName ] ( otherOptions [ k ] ) ;
392
+ const value = otherOptions [ k ] ;
393
+ if ( typeof value === 'number' ) {
394
+ config [ methodName ] ( java . lang . Double . valueOf ( value ) ) ;
395
+
396
+ } else {
397
+ config [ methodName ] ( value ) ;
398
+
399
+ }
393
400
}
394
401
} ) ;
395
402
// if (options.sendClientReports) {
@@ -560,7 +567,7 @@ export namespace NATIVE {
560
567
nSentryOptions = config ;
561
568
sentryOptions = options ;
562
569
} catch ( err ) {
563
- console . error ( 'Error starting Sentry' , err ) ;
570
+ console . error ( 'Error starting Sentry' , err , err . stack ) ;
564
571
throw err ;
565
572
}
566
573
You can’t perform that action at this time.
0 commit comments