mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
Forbidden should not swallow the underlying error
This commit is contained in:
parent
4cd345b8a6
commit
e5b550576c
@ -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),
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user