HandleError include the type of the error object

Kubernetes-commit: f2cb23ad6a14169f5e2a82c5d3b1bd6ebc1074a5
This commit is contained in:
Guoliang Wang 2018-05-25 13:59:05 +08:00 committed by Kubernetes Publisher
parent 537650babf
commit 704926d8fc
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,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", err))
return &metav1.Status{
TypeMeta: metav1.TypeMeta{
Kind: "Status",