vloddot / jolt-svelte

Jolt. A desktop Revolt client made in Svelte.
https://vloddot.github.io/jolt-svelte/
GNU General Public License v3.0
8 stars 2 forks source link

`reywen_http::DeltaError` cannot be serialized to frontend code. #30

Closed vloddot closed 1 year ago

vloddot commented 1 year ago

reywen_http::DeltaError is the enum in Reywen's code that is meant to be used as an error result when doing fetch requests or such. It's quite helpful to have it in the frontend code instead of giving a string. As it can list what came back from the server, status code, etc.

Two ways of handling it would be:

  1. Returning a custom enum that is deserializable
  2. Manually implementing serde::Deserialize

I'm leaning towards the first option as it is easier for the frontend code to handle.

vloddot commented 1 year ago

Reywen was removed from the tech stack for compatibility issues. Closing.