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

fix: improve jinja err msg #363

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Conversation

swarnimarun
Copy link
Contributor

@swarnimarun swarnimarun commented Nov 27, 2023

Before:
image

After:
image

Note: currently I just pass the entire recipe source to the function. I am considering forwarding it to all the functions, as otherwise, the string that will be rendered won't make much sense.

Fixes #309

@swarnimarun swarnimarun requested a review from wolfv November 27, 2023 11:51
@wolfv
Copy link
Member

wolfv commented Nov 27, 2023

much better!

@wolfv
Copy link
Member

wolfv commented Nov 27, 2023

Should we delete the commented out error? Happy to merge.

src/variant_config.rs Outdated Show resolved Hide resolved
@wolfv wolfv merged commit e685d71 into prefix-dev:main Nov 27, 2023
11 checks passed
@swarnimarun
Copy link
Contributor Author

Aah, missed the commented code.

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.

Give nice error messages if if-condition Jinja doesn't parse properly
2 participants