aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/errwrap/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/errwrap/README.md')
-rw-r--r--vendor/github.com/hashicorp/errwrap/README.md2
1 files changed, 1 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)) {