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

Move YAML indentation issue hint into different layer #380

Open
nathanjmcdougall opened this issue Mar 4, 2025 · 0 comments
Open

Move YAML indentation issue hint into different layer #380

nathanjmcdougall opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nathanjmcdougall
Copy link
Owner

Motivation

except UsethisError as err:
err_print(err)
if "mapping values are not allowed here" in str(err):
info_print("Hint: You may have incorrect indentation the YAML file.")
raise typer.Exit(code=1)

This doesn't seem like the right place for this hint. I think it should live at a lower level - in the YAML layer. Then it can propogate to all cases of improperly configured YAML files, not just this one case.

Summary of desired enhancement
Move this logic into the YAML integration layer.

@nathanjmcdougall nathanjmcdougall added the enhancement New feature or request label Mar 4, 2025
@nathanjmcdougall nathanjmcdougall self-assigned this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant