Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fix error deserialization #24

Merged
merged 2 commits into from
Sep 27, 2023
Merged

Fix error deserialization #24

merged 2 commits into from
Sep 27, 2023

Conversation

vigoo
Copy link
Contributor

@vigoo vigoo commented Sep 27, 2023

Copy-pasted the generated enum to make it work

Before:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unknown variant `Unauthorized`, expected one of `badRequest`, `unauthorized`, `limitExceeded`, `golem`, `gatewayTimeout`, `notFound`, `alreadyExists`", line: 1, column: 33)', src/clients/worker.rs:333:33

After:

Connection error: Unauthorized: Account don't have access to f9694100-a36d-4f77-a9e8-83d5f3bce524

@adamgfraser adamgfraser merged commit de67762 into master Sep 27, 2023
2 checks passed
@vigoo vigoo deleted the error-deserialiation-fix branch September 28, 2023 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants