Merge pull request #96887 from sttts/sttts-unexpected-error-string

apiserver: print unknown responsewriter error strings, not only %#+v

Kubernetes-commit: 94b082550e57d06d251735e8d36f4333617e80d9
This commit is contained in:
Kubernetes Publisher 2021-01-09 19:25:05 -08:00
commit 202c033ed5
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func ErrorToAPIStatus(err error) *metav1.Status {
// by REST storage - these typically indicate programmer
// error by not using pkg/api/errors, or unexpected failure
// cases.
runtime.HandleError(fmt.Errorf("apiserver received an error that is not an metav1.Status: %#+v", err))
runtime.HandleError(fmt.Errorf("apiserver received an error that is not an metav1.Status: %#+v: %v", err, err))
return &metav1.Status{
TypeMeta: metav1.TypeMeta{
Kind: "Status",