kubernetes-sigs/kubectl-validate

Improve error handling in localSchemasClient

eddycharly opened this issue · 1 comments

We should check directories exist and return an error if reading the directory returns an error in:

apiGroups, _ := utils.ReadDir(k.fs, filepath.Join(k.dir, "apis"))

coregroup, _ := utils.ReadDir(k.fs, filepath.Join(k.dir, "api"))

I would like to work on this issue.
Do I simply return the error that ReadDir returns (with an additional message)?
Or should I do some kind of error handling?
/assign