mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Bump deps
This commit is contained in:
12
vendor/github.com/go-errors/errors/error.go
generated
vendored
12
vendor/github.com/go-errors/errors/error.go
generated
vendored
@@ -118,15 +118,17 @@ func Wrap(e interface{}, skip int) *Error {
|
||||
// 1 from its caller, etc.
|
||||
func WrapPrefix(e interface{}, prefix string, skip int) *Error {
|
||||
|
||||
err := Wrap(e, skip)
|
||||
err := Wrap(e, 1+skip)
|
||||
|
||||
if err.prefix != "" {
|
||||
err.prefix = fmt.Sprintf("%s: %s", prefix, err.prefix)
|
||||
} else {
|
||||
err.prefix = prefix
|
||||
prefix = fmt.Sprintf("%s: %s", prefix, err.prefix)
|
||||
}
|
||||
|
||||
return err
|
||||
return &Error{
|
||||
Err: err.Err,
|
||||
stack: err.stack,
|
||||
prefix: prefix,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user