Skip to content

Commit

Permalink
apiserver: print unknown responsewriter error strings, not only %#+v
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed Nov 26, 2020
1 parent c1f36fa commit b0ecbbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b0ecbbc

Please sign in to comment.