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

fix: Map ErrRecordNotFound to HTTP 404 #65

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Dec 4, 2023

GET and DELETE /domains/:domain_id were failing with internal server errors when the domain id was unknown. The handler now maps gorm.ErrRecordNotFound to HTTP error 404.

GET and DELETE `/domains/:domain_id` were failing with internal server
errors when the domain id was unknown. The handler now maps
gorm.ErrRecordNotFound to HTTP error 404.

Signed-off-by: Christian Heimes <[email protected]>
@frasertweedale frasertweedale merged commit 6100807 into podengo-project:main Dec 4, 2023
1 check passed
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.

2 participants