mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Better warning string in failed conversion gen
This commit is contained in:
parent
21971e217d
commit
17b64fc3d6
@ -359,7 +359,7 @@ func isDirectlyConvertible(in, out *types.Type, manualConversions conversionFunc
|
|||||||
// Check if there is an out member with that name.
|
// Check if there is an out member with that name.
|
||||||
outMember, found := findMember(out, inMember.Name)
|
outMember, found := findMember(out, inMember.Name)
|
||||||
if !found {
|
if !found {
|
||||||
glog.V(5).Infof("%s.%s is not directly convertible to %s because the destination struct field did not exist", in.Name, inMember.Name, out.Name)
|
glog.V(5).Infof("%s is not directly convertible to %s because the destination field %q did not exist", in.Name, out.Name, inMember.Name)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
convertible = convertible && isConvertible(inMember.Type, outMember.Type, manualConversions)
|
convertible = convertible && isConvertible(inMember.Type, outMember.Type, manualConversions)
|
||||||
|
Loading…
Reference in New Issue
Block a user