Skip to content

Raise error manually #129

@titantwentyone

Description

@titantwentyone

I wanted to know if there was a way to raise an error manually in pug. This would be particularly useful for mixins:

mixin panel(alignment='left')
    // if alignment is not 'left' or 'right', throw error and stop compilation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions