Skip to content

Error messages from partial reads on anonymous structs should not contain the struct definition #421

Closed
@disq

Description

@disq

If a read partially fails and you're decoding in an anonymous (defined in the function or inline, not package level) struct, the error message will actually contain the whole definition, which may be very big, causing very long error messages.

https://play.golang.org/p/eu-dJWFZXom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions