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

api: treat ErrPackfileNotFound as 500 #450

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

api: treat ErrPackfileNotFound as 500 #450

wants to merge 1 commit into from

Conversation

omar-polo
Copy link
Contributor

Unlike the snapshot not found case, which may be caused by a typo or a purposefully deleted snapshot, the packfile not found case is a sympthom of a worst problem: some kind of corruption in the repository.

Unlike the snapshot not found case, which may be caused by a typo
or a purposefully deleted snapshot, the packfile not found case is
a sympthom of a worst problem: some kind of corruption in the
repository.
@omar-polo
Copy link
Contributor Author

Actually we seem to return ErrPackfileNotFound even when the snapshot wasn't found (caught thanks to the tests!), so this needs some more work.

@omar-polo omar-polo marked this pull request as draft February 8, 2025 10:18
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