Explicitly print exceptions that occur within ExposedJsApi.

Before they trickled into JNI and the stack traces were lost.
This commit is contained in:
Andrew Grieve 2013-06-26 14:20:45 -04:00
parent e64ebdfaee
commit 10d31ea0a3

View File

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