mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-25 20:30:32 +00:00
Merge pull request #9774 from liggitt/admission_error
Make admission errors clearer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user