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

Remove duplicate error on StoreCredit#authorize failure #2180

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

jordan-brough
Copy link
Contributor

The code in StoreCredit#validate_authorization already adds errors to the
StoreCredit, so this error is not needed and it may be incorrect if the error
was for something else (like a mismatched currency).

The code in `StoreCredit#validate_authorization` already adds errors to the
StoreCredit, so this error is not needed and it may be incorrect if the error
was for something else (like a mismatched currency).
Copy link
Contributor

@cbrunsdon cbrunsdon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know the error/messaging around this is pretty terrible, so I'm going to assume this is right.

Copy link
Contributor

@jhawthorn jhawthorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the code for validate_authorization, this makes sense

@jhawthorn jhawthorn merged commit b310f72 into solidusio:master Aug 29, 2017
@jhawthorn jhawthorn changed the title Remove extra error on StoreCredit Remove duplicate error on StoreCredit#authorize failure Aug 29, 2017
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