diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/hashicorp/errwrap | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/hashicorp/errwrap')
-rw-r--r-- | vendor/github.com/hashicorp/errwrap/README.md | 2 | ||||
-rw-r--r-- | vendor/github.com/hashicorp/errwrap/go.mod | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/hashicorp/errwrap/README.md b/vendor/github.com/hashicorp/errwrap/README.md index 1c95f59..444df08 100644 --- a/vendor/github.com/hashicorp/errwrap/README.md +++ b/vendor/github.com/hashicorp/errwrap/README.md | |||
@@ -48,7 +48,7 @@ func main() { | |||
48 | // We can use the Contains helpers to check if an error contains | 48 | // We can use the Contains helpers to check if an error contains |
49 | // another error. It is safe to do this with a nil error, or with | 49 | // another error. It is safe to do this with a nil error, or with |
50 | // an error that doesn't even use the errwrap package. | 50 | // an error that doesn't even use the errwrap package. |
51 | if errwrap.Contains(err, ErrNotExist) { | 51 | if errwrap.Contains(err, "does not exist") { |
52 | // Do something | 52 | // Do something |
53 | } | 53 | } |
54 | if errwrap.ContainsType(err, new(os.PathError)) { | 54 | if errwrap.ContainsType(err, new(os.PathError)) { |
diff --git a/vendor/github.com/hashicorp/errwrap/go.mod b/vendor/github.com/hashicorp/errwrap/go.mod new file mode 100644 index 0000000..c9b8402 --- /dev/null +++ b/vendor/github.com/hashicorp/errwrap/go.mod | |||
@@ -0,0 +1 @@ | |||
module github.com/hashicorp/errwrap | |||