Skip to content

Provide an error type for "no protocol with code" #199

Description

@willscott

Right now it's very difficult to identify if the reason a multiaddr failed is because it is corrupt, or because it uses a protocol that is newer than the parsing implementation

https://github.com/multiformats/go-multiaddr/blob/master/codec.go#L79

It would be useful to have an error type so that errors.Is can indicate that the address might be well-formed, but couldn't be parsed because it has a stanza that we don't recognize.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions