Skip to content

Fix typo for user mailer validation error class#7162

Merged
aduth merged 2 commits intomainfrom
aduth-fix-mailer-validation-typo
Oct 18, 2022
Merged

Fix typo for user mailer validation error class#7162
aduth merged 2 commits intomainfrom
aduth-fix-mailer-validation-typo

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Oct 18, 2022

🛠 Summary of changes

Fixes a typo currently causing unhandled exceptions.

class UserEmailAddressMismatchError < StandardError; end

Slack context: https://gsa-tts.slack.com/archives/C0NGESUN5/p1666063910385719

📜 Testing Plan

  • rspec spec/mailers/user_mailer_spec.rb

aduth added 2 commits October 18, 2022 08:14
changelog: Bug Fixes, Mailers, Resolve unhandled errors by correcting error class name
@aduth aduth merged commit 78b7e74 into main Oct 18, 2022
@aduth aduth deleted the aduth-fix-mailer-validation-typo branch October 18, 2022 13:06
aduth added a commit that referenced this pull request Oct 18, 2022
* Fix typo for user mailer validation error class

changelog: Bug Fixes, Mailers, Resolve unhandled errors by correcting error class name

* Add spec
@aduth aduth mentioned this pull request Oct 18, 2022
@email_address = params.fetch(:email_address)
if @user.id != @email_address.user_id
raise UserEmailAddressMisMatchError.new(
raise UserEmailAddressMismatchError.new(
Copy link
Contributor

Choose a reason for hiding this comment

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

🤦🏼‍♂️

Thank you for fixing this

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