Skip to content

Commit

Permalink
Merge pull request kubernetes#20 from tossmilestone/fix-handle-error
Browse files Browse the repository at this point in the history
HandleError include the type of the error object
  • Loading branch information
tossmilestone authored Aug 9, 2018
2 parents 0985707 + ee96d19 commit 3332475
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3332475

Please sign in to comment.