Skip to content

Commit 58322c6

Browse files
committed
fix(android): non handled error fix on startWithDsnString
1 parent 8cad2a5 commit 58322c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nssentry.android.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,15 @@ export namespace NSSentry {
500500
sentryOptions = options;
501501
} catch(err) {
502502
console.error('Error starting Sentry', err);
503+
throw err;
503504
}
504505

505506
},
506507
})
507508
);
508509
initialized = true;
509510
} catch (e) {
510-
console.error('Catching on startWithDsnString, calling callback', e.getMessage());
511+
console.error('Catching on startWithDsnString, calling callback', e);
511512
reject(e);
512513
return;
513514
}

0 commit comments

Comments
 (0)