Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment — Error handling for HTTP capability #35

Closed
wants to merge 3 commits into from

Conversation

StuartHarris
Copy link
Member

Experimenting with what it could look like to thread Result types through the core (e.g. for Http Capability)

Notes:

  • Had to temporarily remove the deserialisation in the capability (e.g. getJson()), but might be able to add it back later
  • Thought that aliasing Result<HttpResponse, HttpError> to HttpResult might flow through into the type generation to avoid name clashes, but it appears not to. We might need to find another solution to this (e.g. multiple output files, also see [Bug] Swift types prefixed by module name zefchain/serde-reflection#22 (comment))
  • the wasmpack plugin for nextjs doesn't support the cargo workspace hoisting of package fields, so had to remove this for the shared libs (although it seems the dependency hoisting is OK).

@StuartHarris StuartHarris deleted the better-error-handling branch April 28, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant