diff --git a/vendor/github.com/cloudfoundry-community/vaultkv/errors.go b/vendor/github.com/cloudfoundry-community/vaultkv/errors.go index 2659f99..1c9e3dd 100644 --- a/vendor/github.com/cloudfoundry-community/vaultkv/errors.go +++ b/vendor/github.com/cloudfoundry-community/vaultkv/errors.go @@ -3,6 +3,7 @@ package vaultkv import ( "encoding/json" "errors" + "fmt" "net/http" "strings" ) @@ -14,7 +15,7 @@ type ErrBadRequest struct { } func (e *ErrBadRequest) Error() string { - return e.message + return fmt.Sprintf("400 Bad Request: %s", e.message) } //IsBadRequest returns true if the error is an ErrBadRequest @@ -31,7 +32,7 @@ type ErrForbidden struct { } func (e *ErrForbidden) Error() string { - return e.message + return fmt.Sprintf("403 Forbidden: %s", e.message) } //IsForbidden returns true if the error is an ErrForbidden @@ -49,7 +50,7 @@ type ErrNotFound struct { } func (e *ErrNotFound) Error() string { - return e.message + return fmt.Sprintf("404 Not Found: %s", e.message) } //IsNotFound returns true if the error is an ErrNotFound @@ -65,7 +66,7 @@ type ErrStandby struct { } func (e *ErrStandby) Error() string { - return e.message + return fmt.Sprintf("503 Standby: %s", e.message) } //IsErrStandby returns true if the error is an ErrStandby @@ -81,7 +82,7 @@ type ErrInternalServer struct { } func (e *ErrInternalServer) Error() string { - return e.message + return fmt.Sprintf("500 Internal Server Error: %s", e.message) } //IsInternalServer returns true if the error is an ErrInternalServer @@ -98,7 +99,7 @@ type ErrSealed struct { } func (e *ErrSealed) Error() string { - return e.message + return fmt.Sprintf("503 Sealed: %s", e.message) } //IsSealed returns true if the error is an ErrSealed @@ -114,7 +115,7 @@ type ErrUninitialized struct { } func (e *ErrUninitialized) Error() string { - return e.message + return fmt.Sprintf("503 Uninitialized: %s", e.message) } //IsUninitialized returns true if the error is an ErrUninitialized @@ -130,7 +131,7 @@ type ErrTransport struct { } func (e *ErrTransport) Error() string { - return e.message + return fmt.Sprintf("Transport Error: %s", e.message) } //IsTransport returns true if the error is an ErrTransport @@ -147,6 +148,7 @@ type ErrKVUnsupported struct { } func (e *ErrKVUnsupported) Error() string { + return fmt.Sprintf("KV Version Support: %s", e.message) return e.message } diff --git a/vendor/vendor.json b/vendor/vendor.json index 56729ef..bb1d50d 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -21,10 +21,10 @@ "revisionTime": "2015-10-22T06:55:26Z" }, { - "checksumSHA1": "Ce6JZCbAo6612vWYZSGvV6pshqE=", + "checksumSHA1": "nzCKGItKO54GgTG5Ipnll9LuVnM=", "path": "github.com/cloudfoundry-community/vaultkv", - "revision": "0b9e5b8b10ba2bc3cebedc9ad19563e90ff1391d", - "revisionTime": "2019-10-10T20:58:01Z" + "revision": "6fe0b3f1efb0dbc4a8b9e33ce2382d549c3afb5e", + "revisionTime": "2019-10-16T22:14:02Z" }, { "checksumSHA1": "PM+dS3SGHWrjdQsPtbdnvanfgC8=",