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(taxes): tax_error handling must target ValidationFailure #2548

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

vincent-pochet
Copy link
Collaborator

Description

This PR fixes the following error in BillSubscriptionJob

NoMethodError
 undefined method `messages' for an instance of ActiveRecord::RecordNotUnique

The issue is related to the recent handling of tax_error that is checking for a tax_error error in the error.messages. error.messages only exists if the error is a BaseService::ValidationFailure

@vincent-pochet vincent-pochet added the 🐞 Bug Something isn't working label Sep 9, 2024
@vincent-pochet vincent-pochet merged commit fa7c5ec into main Sep 9, 2024
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-tax-errors branch September 9, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants