TauRPC icon indicating copy to clipboard operation
TauRPC copied to clipboard

Using a custom error struct?

Open bivald opened this issue 6 months ago • 3 comments

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

bivald avatar Aug 16 '24 14:08 bivald