Skip to content

Usage in README is misleading #4

@dbkaplun

Description

@dbkaplun

https://github.com/hashicorp/errwrap#basic-usage:

	// ...
	if errwrap.Contains(err, ErrNotExist) {
		// Do something
	}
	// ...

errwrap.Contains type signature is func Contains(err error, msg string) bool. However ErrNotExist has the same name as os.ErrNotExist and seems to contain an error based on naming. This is conflicting usage. Is the type signature wrong, or the usage documentation?

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