fix(android): adjust Android plugin command exception to use e.message (#6831)

This commit is contained in:
Lucas Fernandes Nogueira 2023-05-01 10:16:05 -07:00 committed by GitHub
parent e68a08da51
commit edb16d13a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Adjust Android plugin exception error.

View File

@ -119,7 +119,7 @@ class PluginManager(val activity: AppCompatActivity) {
plugins[pluginId]?.invoke(invoke)
}
} catch (e: Exception) {
invoke.reject(e.toString())
invoke.reject(e.message)
}
}