mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Add error detail
This commit is contained in:
		@@ -17,7 +17,6 @@ limitations under the License.
 | 
			
		||||
package pod
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"errors"
 | 
			
		||||
	"fmt"
 | 
			
		||||
 | 
			
		||||
	v1 "k8s.io/api/core/v1"
 | 
			
		||||
@@ -142,7 +141,7 @@ func (mc *basicMirrorClient) getNodeUID() (types.UID, error) {
 | 
			
		||||
		return "", err
 | 
			
		||||
	}
 | 
			
		||||
	if node.UID == "" {
 | 
			
		||||
		return "", errors.New("node UID unset")
 | 
			
		||||
		return "", fmt.Errorf("UID unset for node %s", mc.nodeName)
 | 
			
		||||
	}
 | 
			
		||||
	return node.UID, nil
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user