We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7fda3cb + b9cc986 commit c66e3bfCopy full SHA for c66e3bf
pkg/resource/mapper.go
@@ -66,7 +66,7 @@ func (m *mapper) infoForData(data []byte, source string) (*Info, error) {
66
mapping, err := restMapper.RESTMapping(gvk.GroupKind(), gvk.Version)
67
if err != nil {
68
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",
+ return nil, fmt.Errorf("resource mapping not found for name: %q namespace: %q from %q: %w\nensure CRDs are installed first",
70
name, namespace, source, err)
71
}
72
return nil, fmt.Errorf("unable to recognize %q: %v", source, err)
0 commit comments