Make admission errors clearer

This commit is contained in:
Jordan Liggitt 2015-06-13 10:48:44 -04:00
parent 9f60f3ce44
commit 87f84974d3

View File

@ -34,7 +34,7 @@ func NewForbidden(a Attributes, internalError error) error {
if obj != nil {
objectMeta, err := api.ObjectMetaFor(obj)
if err != nil {
return apierrors.NewForbidden(kind, name, err)
return apierrors.NewForbidden(kind, name, internalError)
}
// this is necessary because name object name generation has not occurred yet