mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #64300 from wgliang/master.fix-64244
Automatic merge from submit-queue (batch tested with PRs 64300, 64375). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. HandleError include the type of the error object **What this PR does / why we need it**: /kind feature HandleError include the type of the error object **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #64244 **Special notes for your reviewer**: /cc @MikeSpreitzer **Release note**: ```release-note NONE ```
This commit is contained in:
		@@ -61,7 +61,7 @@ func ErrorToAPIStatus(err error) *metav1.Status {
 | 
				
			|||||||
		// by REST storage - these typically indicate programmer
 | 
							// by REST storage - these typically indicate programmer
 | 
				
			||||||
		// error by not using pkg/api/errors, or unexpected failure
 | 
							// error by not using pkg/api/errors, or unexpected failure
 | 
				
			||||||
		// cases.
 | 
							// 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{
 | 
							return &metav1.Status{
 | 
				
			||||||
			TypeMeta: metav1.TypeMeta{
 | 
								TypeMeta: metav1.TypeMeta{
 | 
				
			||||||
				Kind:       "Status",
 | 
									Kind:       "Status",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user