Skip to content

Bug: Decoder error message creation #806

Closed
@Massolari

Description

@Massolari

When trying to decode a nullable field using the wrong code below:

  use link_flair_text <- decode.optional_field(
    "link_flair_text",
    "",
    decode.string,
  )

The error I get is: UnableToDecode([DecodeError("String", "Atom", ["data", "children", "0", "data"])]). The field link_flair_text is, indeed on data.children[0].data, but the message doesn't say the error is on the field link_flair_text

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions