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

feat(errors): use new way to define exceptions #966

Merged
merged 2 commits into from
Oct 11, 2023
Merged

Conversation

RomainLanz
Copy link
Member

Hey there! 👋🏻

This PR uses the new way of defining exceptions that we are using for V6 packages.
I also took the opportunity to fix some typos in related files.

I believe we can migrate more exceptions thrown without any code to isolate them to this new system.
What do you think?

@thetutlage
Copy link
Member

Some tests seems to be impacted by the change

assert.equal(
migrator1.error!.message,
'Cannot perform rollback. Schema file {database/migrations/accounts_v11} is missing'
Copy link
Member Author

Choose a reason for hiding this comment

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

Is there any reason the file path was surrounded by {}?
That would be a breaking change if another tool uses it to extract the path.

@thetutlage thetutlage merged commit 123b275 into v6-next Oct 11, 2023
32 checks passed
@thetutlage thetutlage deleted the feat/errors branch October 11, 2023 11:18
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