4
0
mirror of https://github.com/apache/cordova-android.git synced 2025-05-17 17:36:14 +08:00

Explicitly print exceptions that occur within ExposedJsApi.

Before they trickled into JNI and the stack traces were lost.
(cherry picked from commit 10d31ea0a30ec47d68c79813d56e7506b1542f7e)
This commit is contained in:
Andrew Grieve 2013-06-26 14:20:45 -04:00
parent 16e08384c0
commit f42e5f66fd

@ -54,6 +54,9 @@ import org.json.JSONException;
ret = jsMessageQueue.popAndEncode();
}
return ret;
} catch (Throwable e) {
e.printStackTrace();
return "";
} finally {
jsMessageQueue.setPaused(false);
}