Skip to content

fix: improve codersdk error messages when not JSON#4495

Merged
deansheather merged 5 commits into
mainfrom
dean/improve-codersdk-errors
Oct 21, 2022
Merged

fix: improve codersdk error messages when not JSON#4495
deansheather merged 5 commits into
mainfrom
dean/improve-codersdk-errors

Conversation

@deansheather
Copy link
Copy Markdown
Member

If there response didn't contain a codersdk.Response or wasn't plain text then you wouldn't be able to see the response.

@deansheather deansheather marked this pull request as draft October 11, 2022 20:11
@deansheather deansheather marked this pull request as ready for review October 18, 2022 21:24
@deansheather deansheather requested a review from coadler October 18, 2022 21:24
Comment thread codersdk/client.go
Comment thread codersdk/client.go
@deansheather deansheather enabled auto-merge (squash) October 21, 2022 23:13
@deansheather deansheather merged commit d0fb054 into main Oct 21, 2022
@deansheather deansheather deleted the dean/improve-codersdk-errors branch October 21, 2022 23:36
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 21, 2022
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.

2 participants