Closed JingLeiTalan closed 3 weeks ago
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron 💙
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.
Have a great day! Ionitron 💙
Capacitor Version
When use call.reject(error) in custom plugin, the plugin js result which contains 'errorMessage' and 'message', the content are the same,
After checked, seems like in the JS.swift :![image](https://github.com/ionic-team/capacitor/assets/92030419/50af74a0-dfb3-4c24-8aae-1d6eda07828e)
How can we only return the result which can be parsed more clearly at ionic side ?
Other API Details
No response
Platforms Affected
Current Behavior
JS error rertun an json with errorMessage and message
Expected Behavior
JS error return what be defined in the call.reject()
Project Reproduction
no
Additional Information
No response