You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-app/runtime/src/main/cpp/Runtime.cpp
+21-5Lines changed: 21 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,23 @@ using namespace tns;
43
43
bool tns::LogEnabled = true;
44
44
SimpleAllocator g_allocator;
45
45
46
-
voidSIGABRT_handler(int sigNumber) {
47
-
throwNativeScriptException("JNI Exception occurred (SIGABRT).\n=======\nCheck the 'adb logcat' for additional information about the error.\n=======\n");
46
+
voidSIG_handler(int sigNumber) {
47
+
stringstream msg;
48
+
msg << "JNI Exception occurred (";
49
+
switch (sigNumber) {
50
+
case SIGABRT:
51
+
msg << "SIGABRT";
52
+
break;
53
+
case SIGSEGV:
54
+
msg << "SIGSEGV";
55
+
break;
56
+
default:
57
+
// Shouldn't happen, but for completeness
58
+
msg << "Signal #" << sigNumber;
59
+
break;
60
+
}
61
+
msg << ").\n=======\nCheck the 'adb logcat' for additional information about the error.\n=======\n";
0 commit comments