Skip to content

Commit c66e3bf

Browse files
Merge pull request #122569 from IvoGoman/wrap-nomatcherror
feat(cli-runtime): wrap meta.NoKindMatchErrors Kubernetes-commit: 2a44cb0ab352f97c419b31b592def50b4e98bc56
2 parents 7fda3cb + b9cc986 commit c66e3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/resource/mapper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (m *mapper) infoForData(data []byte, source string) (*Info, error) {
6666
mapping, err := restMapper.RESTMapping(gvk.GroupKind(), gvk.Version)
6767
if err != nil {
6868
if _, ok := err.(*meta.NoKindMatchError); ok {
69-
return nil, fmt.Errorf("resource mapping not found for name: %q namespace: %q from %q: %v\nensure CRDs are installed first",
69+
return nil, fmt.Errorf("resource mapping not found for name: %q namespace: %q from %q: %w\nensure CRDs are installed first",
7070
name, namespace, source, err)
7171
}
7272
return nil, fmt.Errorf("unable to recognize %q: %v", source, err)

0 commit comments

Comments
 (0)