Bump deps

This commit is contained in:
Jeff Mitchell
2017-11-07 11:57:05 -05:00
parent 92650358d6
commit 61402cf522
192 changed files with 6197 additions and 3433 deletions

View File

@@ -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,
}
}