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