diff options
Diffstat (limited to 'vendor/github.com/hashicorp/errwrap')
-rw-r--r-- | vendor/github.com/hashicorp/errwrap/LICENSE | 1 | ||||
-rw-r--r-- | vendor/github.com/hashicorp/errwrap/README.md | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/errwrap/LICENSE b/vendor/github.com/hashicorp/errwrap/LICENSE index 82b4de97c..c33dcc7c9 100644 --- a/vendor/github.com/hashicorp/errwrap/LICENSE +++ b/vendor/github.com/hashicorp/errwrap/LICENSE @@ -351,3 +351,4 @@ Exhibit B - “Incompatible With Secondary Licenses” Notice This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla Public License, v. 2.0. + diff --git a/vendor/github.com/hashicorp/errwrap/README.md b/vendor/github.com/hashicorp/errwrap/README.md index 1c95f5978..444df08f8 100644 --- a/vendor/github.com/hashicorp/errwrap/README.md +++ b/vendor/github.com/hashicorp/errwrap/README.md @@ -48,7 +48,7 @@ func main() { // We can use the Contains helpers to check if an error contains // another error. It is safe to do this with a nil error, or with // an error that doesn't even use the errwrap package. - if errwrap.Contains(err, ErrNotExist) { + if errwrap.Contains(err, "does not exist") { // Do something } if errwrap.ContainsType(err, new(os.PathError)) { |