Skip to content

Custom error types reduced to plain errors on unmarshal (upstream #294) #22

@xe-nvdk

Description

@xe-nvdk

Upstream: vmihailenco#294

When marshalling/unmarshalling a []error containing custom error types with custom EncodeMsgpack/DecodeMsgpack, all errors are reduced to plain errors.errorString{} on unmarshal. The encodeErrorValue encoder is used unconditionally for the error interface, ignoring custom encoders registered via typeEncMap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream-bugBug inherited from upstream vmihailenco/msgpack

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions