Skip to content

Using a custom error struct? #25

@bivald

Description

@bivald

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions