Skip to content

Improve error messages #13

Description

@RobinWebbers

Right now, the errors are not great. It's either a unit (), string String or SDoc... We ideally have proper typed errors that we can pattern match! We have a few, but most of the codebase does not... I think the first step is to push everything towards SDoc! This is at least descriptive for an end user. After this, we can move the SDoc into the Outputable instance of a proper, typed error. These errors should be in the spirit of "plucking" as described here: https://www.parsonsmatt.org/2020/10/27/plucking_in_plucking_out.html.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions