diff --git a/lib/fb/src/main/cpp/jni/Exceptions.cpp b/lib/fb/src/main/cpp/jni/Exceptions.cpp index 8688dfbf..73166c04 100644 --- a/lib/fb/src/main/cpp/jni/Exceptions.cpp +++ b/lib/fb/src/main/cpp/jni/Exceptions.cpp @@ -219,11 +219,11 @@ void translatePendingCppExceptionToJavaException() noexcept { setJavaExceptionAndAbortOnFailure(previous); } catch (std::exception& e) { FBLOGE("unexpected exception in translatePendingCppExceptionToJavaException: %s", e.what()); - // rethrow the exception and let the noexcept handling abort. - throw; + // std::terminate will print the message of the pending exception e + std::terminate(); } catch (...) { FBLOGE("unexpected exception in translatePendingCppExceptionToJavaException"); - throw; + std::terminate(); } }