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

feat: add error code unauthorized #313

Merged
merged 2 commits into from
Sep 5, 2023
Merged

feat: add error code unauthorized #313

merged 2 commits into from
Sep 5, 2023

Commits on Sep 5, 2023

  1. feat: add error code unauthorized

    This makes it possible to check for an invalid token using
    `hcloud.IsError(err, hcloud.ErrorCodeUnauthorized)`.
    apricote committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    5ac3c48 View commit details
    Browse the repository at this point in the history
  2. 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.
    apricote committed Sep 5, 2023
    Configuration menu
    Copy the full SHA
    15c7a30 View commit details
    Browse the repository at this point in the history