Skip to content

Embed errors in the generated AST instead of raising. #27

@NathanReb

Description

@NathanReb

Embedding errors directly into the AST using the special [%ocaml.error "Some error msg"] is the preferred way of reporting errors in ppxlib based ppx-es so it would be nice to migrate from raising through Location.raise_error* to embedding errors directly.

This would allow reporting several errors at once for a given ppx_yojson extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions