Skip to content

Commit edb16d1

Browse files
authored
fix(android): adjust Android plugin command exception to use e.message (#6831)
1 parent e68a08d commit edb16d1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Adjust Android plugin exception error.

core/tauri/mobile/android/src/main/java/app/tauri/plugin/PluginManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class PluginManager(val activity: AppCompatActivity) {
119119
plugins[pluginId]?.invoke(invoke)
120120
}
121121
} catch (e: Exception) {
122-
invoke.reject(e.toString())
122+
invoke.reject(e.message)
123123
}
124124
}
125125

0 commit comments

Comments
 (0)