Skip to content

Add additional debug information to errors #37

@ajrudzitis

Description

@ajrudzitis

While developing a schema for my format, I repeatedly hit TryMapFailed. The mistake in the schema was mine, however, there was little information in the actual error that was useful for debugging. At the very least, it would be useful to understand the offset where the error occurred. Other useful information would be:

  • The type we were attempting to parse
  • The value which was parsed versus the allowed values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions