feat: show whole stack trace in strings

This commit is contained in:
PalmDevs 2025-10-16 01:41:34 +07:00 • committed by cocobo1
parent 9ef9156d7e
commit 4e9116f3f9
2 changed files with 2 additions and 2 deletions

View file

@ -140,4 +140,4 @@ class UpdaterModule : Module() {
error = null error = null
downloadScript(activity) downloadScript(activity)
} }
} }

View file

@ -156,7 +156,7 @@ class BridgeModule : Module() {
val ret = method(args).toNativeObject() val ret = method(args).toNativeObject()
mapOf("result" to ret) mapOf("result" to ret)
} catch (e: Throwable) { } catch (e: Throwable) {
mapOf("error" to e.toString()) mapOf("error" to e.stackTraceToString())
} }
private fun getBridgeCallData(hashMap: HashMap<String, Any?>): Pair<BridgeMethodCallback, BridgeMethodArgs>? { private fun getBridgeCallData(hashMap: HashMap<String, Any?>): Pair<BridgeMethodCallback, BridgeMethodArgs>? {