mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 20:33:07 +08:00
Explicitly print exceptions that occur within ExposedJsApi.
Before they trickled into JNI and the stack traces were lost.
This commit is contained in:
parent
e64ebdfaee
commit
10d31ea0a3
@ -54,6 +54,9 @@ import org.json.JSONException;
|
|||||||
ret = jsMessageQueue.popAndEncode();
|
ret = jsMessageQueue.popAndEncode();
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
} catch (Throwable e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return "";
|
||||||
} finally {
|
} finally {
|
||||||
jsMessageQueue.setPaused(false);
|
jsMessageQueue.setPaused(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user