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

Rename hook errors to be more descriptive #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oogali
Copy link

@oogali oogali commented Sep 23, 2023

Related Issue

Hi, I had a question but I'm wagering that this is easy in the interest of time/effort... so rather than creating a separate issue and PR, I'm including the question inline here alongside the PR.

I'm not wedded to the code so if it gets declined, no big deal.

Is there a compelling reason why HookNotImplemented is shared across the eight lifecycle events? I'm doing some light fuzzing work with @khegeman and having a single error made it a bit challenging to discover where our code was failing.

I found great use out of dedicated errors and I wanted to pass it along... but again, if this provides no value (or negative value), feel free to decline.

Description of changes

This PR creates explicit errors for where execution of a hook is attempted despite it not being implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants