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

Avoid raising bare runtime errors #582

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Avoid raising bare runtime errors #582

merged 2 commits into from
Jul 8, 2024

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jul 5, 2024

We should always raise a specific error to make it easier for client to rescue properly when something goes wrong.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar added the chore Chore task label Jul 5, 2024
@Morriar Morriar self-assigned this Jul 5, 2024
@Morriar Morriar requested a review from a team as a code owner July 5, 2024 16:50
@andyw8
Copy link
Contributor

andyw8 commented Jul 5, 2024

I thought RuboCop had something to enforce this but I can't find it. 🤔

@Morriar Morriar merged commit 4134d8c into main Jul 8, 2024
8 checks passed
@Morriar Morriar deleted the at-raise-error branch July 8, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants