Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

refactor: adjust error handling for non-existent resources#92

Merged
kimdre merged 2 commits into
mainfrom
refactor/error-handling
Jul 12, 2024
Merged

refactor: adjust error handling for non-existent resources#92
kimdre merged 2 commits into
mainfrom
refactor/error-handling

Conversation

@kimdre
Copy link
Copy Markdown
Member

@kimdre kimdre commented Jul 12, 2024

No description provided.

Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>
@kimdre kimdre added the Kind/Enhancement Improve existing functionallity label Jul 12, 2024
@kimdre kimdre self-assigned this Jul 12, 2024
@kimdre kimdre requested a review from jkroepke July 12, 2024 22:14
Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>
@kimdre kimdre merged commit c25344f into main Jul 12, 2024
@kimdre kimdre deleted the refactor/error-handling branch July 12, 2024 22:23
@kimdre kimdre removed the request for review from jkroepke July 12, 2024 22:23
zone, err := client.GetZone(context.Background(), "12345678")

require.NoError(t, err)
require.Error(t, err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should check, if ErrNotFound is returned. I now there is an extra require func for it

kimdre added a commit that referenced this pull request Jul 13, 2024
Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Kind/Enhancement Improve existing functionallity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants