mapper:MultiRESTMapper{fixedRESTMapper{err:errors.New("fail on this")},fixedRESTMapper{resourceFor:unversioned.GroupVersionResource{Resource:"unused"}}},
mapper:MultiRESTMapper{fixedRESTMapper{err:errors.New("fail on this")},fixedRESTMapper{resourcesFor:[]unversioned.GroupVersionResource{{Resource:"unused"}}}},
handleErr(fmt.Sprintf("the server doesn't have a resource type %q in group %q and version %q",noMatch.PartialResource.Resource,noMatch.PartialResource.Group,noMatch.PartialResource.Version))
caselen(noMatch.PartialResource.Group)>0:
handleErr(fmt.Sprintf("the server doesn't have a resource type %q in group %q",noMatch.PartialResource.Resource,noMatch.PartialResource.Group))
caselen(noMatch.PartialResource.Version)>0:
handleErr(fmt.Sprintf("the server doesn't have a resource type %q in version %q",noMatch.PartialResource.Resource,noMatch.PartialResource.Version))
default:
handleErr(fmt.Sprintf("the server doesn't have a resource type %q",noMatch.PartialResource.Resource))
}
return
}
// handle multiline errors
ifclientcmd.IsConfigurationInvalid(err){
handleErr(MultilineError("Error in configuration: ",err))