Skip to content

More verbose error messages in oneOf #9

Description

@kubukoz

I like the simplicity of the current error model (just a string is sometimes exactly what you want), but currently if a union fails to decode, you get virtually no information.

Combining the errors somehow would be great to have. Some ideas:

  • Either -> EitherNel (probably the most intrusive change)
  • ReadError as an ADT
  • just combining the strings to a larger string in the decoding logic for alternatives

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions