Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error messages for invalid kustomization paths #109

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Conversation

allenporter
Copy link
Owner

@allenporter allenporter commented Mar 9, 2023

Improve exception handling to give a slightly more useful error message when an invalid path is specified.

~/home-ops-2$ flux-local get hr -A --path .
Command '(None) kustomize cfg grep spec.sourceRef.kind=GitRepository' failed with return code 1
Error: MalformedYAMLError: yaml: mapping values are not allowed in this context

flux-local error:  Error building Fluxtomization in '/home/allen/home-ops-2' path '.': Command '(None) kustomize cfg grep spec.sourceRef.kind=GitRepository' failed with return code 1
Error: MalformedYAMLError: yaml: mapping values are not allowed in this context
Try specifying another path within the git repo?

@allenporter allenporter merged commit fe4a59b into main Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant