diff --git a/errors/error.go b/errors/error.go index 19f3c26..52e06cc 100644 --- a/errors/error.go +++ b/errors/error.go @@ -48,7 +48,7 @@ type FullError struct { // Wrap will wrap the given error and return a new Error. func Wrap(err error) Error { - if err != nil { + if err == nil { return nil }