Commit b9dd9c4f authored by Eric Tune's avatar Eric Tune

Merge pull request #3519 from derekwaynecarr/forbidden_swallows_err

Forbidden should not swallow the underlying error
parents 4cd345b8 e5b55057
...@@ -102,7 +102,7 @@ func NewForbidden(kind, name string, err error) error { ...@@ -102,7 +102,7 @@ func NewForbidden(kind, name string, err error) error {
Kind: kind, Kind: kind,
ID: name, ID: name,
}, },
Message: fmt.Sprintf("%s %q is forbidden", kind, name), Message: fmt.Sprintf("%s %q is forbidden: %v", kind, name, err),
}} }}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment