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

refactor: start using Avo::ResourceNotFoundError instead ActionController::RoutingError #3703

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

Paul-Bob
Copy link
Contributor

Description

This update replaces the ActionController::RoutingError with a more descriptive and debuggable custom error, Avo::ResourceNotFoundError, when a requested resource is not found.

Motivation

The default ActionController::RoutingError can obscure the root cause of missing resources, making debugging more challenging. By introducing Avo::ResourceNotFoundError, we ensure clearer error messaging and a more maintainable approach to handling resource lookup failures.

@Paul-Bob Paul-Bob self-assigned this Feb 28, 2025
Copy link

codeclimate bot commented Feb 28, 2025

Code Climate has analyzed commit 2cbffaf and detected 0 issues on this pull request.

View more on Code Climate.

@Paul-Bob Paul-Bob merged commit be753a5 into main Mar 3, 2025
20 checks passed
@Paul-Bob Paul-Bob deleted the refactor/resource_not_found_error branch March 3, 2025 10:17
Copy link
Contributor

github-actions bot commented Mar 3, 2025

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant