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

handle errors #2

Merged
merged 2 commits into from
Mar 13, 2023
Merged

handle errors #2

merged 2 commits into from
Mar 13, 2023

Conversation

till
Copy link

@till till commented Mar 11, 2023

  • Fix: person/contact creation
  • Fix: handle errors from the API

@till till self-assigned this Mar 11, 2023
till added 2 commits March 11, 2023 15:58
- make fields optional (to fix encoding of the struct)
- make more fields optional when they can be
- check if response is successful (before decoding)
- parse error response(s)
- add basic test coverage for legacy and new error responses
- upgrade go to 1.20
@till till merged commit 343b8df into master Mar 13, 2023
@till till deleted the handle-errors branch March 13, 2023 13:50
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