feat: show whole stack trace in strings

This commit is contained in:
PalmDevs 2025-10-16 01:41:34 +07:00
parent 536e9ef21e
commit 9828f9d267
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
2 changed files with 2 additions and 2 deletions

View file

@ -149,7 +149,7 @@ object UpdaterModule : Module() {
Unable to download the latest version of Revenge.
This is usually caused by bad network connection.
Error: ${e.message ?: e.toString()}
Error: ${e.message ?: e.stackTraceToString()}
""".trimIndent()
).setNegativeButton("Dismiss") { dialog, _ ->
dialog.dismiss()

View file

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