TauRPC
TauRPC copied to clipboard
Using a custom error struct?
Hi,
Just started using this in tauri-v2 and I love it. Question that I haven't managed to figure out myself, would it be possible to send an error struct back to Javascript, so you get a TypeScript-typed dictionary back on the Javascript side? I've played around with struct and serialisers, but haven't managed to do it yet. My backup plan would be to send an error string as a JSON document, but I didn't manage to serde_json the struct. And a big thank you for creating this, let me know if I could buy you a beer or two via something (Paypal?)
Regards, Niklas