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

Ignore 404s #132

Merged
merged 3 commits into from
Jan 14, 2024
Merged

Ignore 404s #132

merged 3 commits into from
Jan 14, 2024

Conversation

matthewarthur
Copy link
Contributor

@matthewarthur matthewarthur commented Jan 9, 2024

In the original code, if the Delete function returns any error, this error is immediately returned, which has caused us problems as it includes the case where the error is a 404 (resource not found). This is the expected scenario when the resource is already deleted.

The change updates error handling to specifically check if the error is not a 404. If the error is anything other than a 404, it's returned. Should also allow adding additional error-handling cases in the future.

@mariavlasov mariavlasov merged commit f5a21c6 into frontegg:master Jan 14, 2024
2 checks 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.

3 participants