Skip to content

Commit c87647e

Browse files
authored
ref: Push error if initialization fails (#102)
1 parent 9e3cf0f commit c87647e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sentry/native/native_sdk.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ void NativeSDK::initialize() {
273273

274274
int err = sentry_init(options);
275275
initialized = (err == 0);
276+
277+
if (err != 0) {
278+
ERR_PRINT("Sentry: Failed to initialize native SDK. Error code: " + itos(err));
279+
}
276280
}
277281

278282
NativeSDK::~NativeSDK() {

0 commit comments

Comments
 (0)