Skip to content

Throw in before.* should also cancel the operation #310

@KoenLav

Description

@KoenLav

Is your feature request related to a problem? Please describe.
In a before.insert hook we are validating some data, and if not valid we want to show the user an error message by throwing an error AND cancel the operation.

Describe the solution you'd like
I would like the operation to be stopped if a before.* hook throws.

Describe alternatives you've considered
Not sure if we can fix this in any other way? Suggestions welcome!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions