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

[Backport release-1.x] feat: add error code unauthorized #315

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 5, 2023

Backport b77d9e0 from #313.

* feat: add error code unauthorized

This makes it possible to check for an invalid token using
`hcloud.IsError(err, hcloud.ErrorCodeUnauthorized)`.

* docs: cleanup error codes comments

The "header" comment previously showed up for the first error code of
that category. By adding an empty line inbetween the two are no longer
connected.

By using "Deprecated: " tooling will automatically show a deprecation
warning for the `ErrorCodeLimitReached` constant.

(cherry picked from commit b77d9e0)
@github-actions github-actions bot requested a review from a team as a code owner September 5, 2023 12:38
@apricote apricote merged commit 5542b11 into release-1.x Sep 5, 2023
@apricote apricote deleted the backport-313-to-release-1.x branch September 5, 2023 12:45
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