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

Allow context error message in Changing validation #1677

Conversation

binarypaladin
Copy link
Contributor

Non-atomic validation failures did not respect the :message provided in the context if it was present.

As is obvious, this little change took me down a bit of clean-up/refactor rabbit hole. It's a compulsion.

Contributor checklist

  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

This test is just noisy with a lot of verbosity that actually makes
working with it and reading it harder than it needs to be.
Having just fixed issues with the error message, replacing
`{:error, exception(opts, context)}` fives times implied some
consolidation was in order.
@zachdaniel
Copy link
Contributor

🚀 Thank you for your contribution! 🚀

@zachdaniel zachdaniel merged commit effdd33 into ash-project:main Dec 27, 2024
31 of 34 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.

2 participants