summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-errors/errors/error.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/go-errors/errors/error.go')
-rw-r--r--vendor/github.com/go-errors/errors/error.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/github.com/go-errors/errors/error.go b/vendor/github.com/go-errors/errors/error.go
index 13aa35ac8..ccbc2e427 100644
--- a/vendor/github.com/go-errors/errors/error.go
+++ b/vendor/github.com/go-errors/errors/error.go
@@ -139,7 +139,6 @@ func WrapPrefix(e interface{}, prefix string, skip int) *Error {
}
-
// Errorf creates a new error with the given message. You can use it
// as a drop-in replacement for fmt.Errorf() to provide descriptive
// errors in return values.
@@ -203,3 +202,8 @@ func (err *Error) TypeName() string {
}
return reflect.TypeOf(err.Err).String()
}
+
+// Return the wrapped error (implements api for As function).
+func (err *Error) Unwrap() error {
+ return err.Err
+}