Skip to content

Shorten jinja error message for clarity and consistency #386

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fornwall
Copy link
Contributor

Removing "the compiled" from "Failed to eval the compiled Jinja expression" makes the error message a bit shorter and clearer:

Failed to eval the compiled Jinja expression - invalid operation: 'env_var': environment variable '...' not found

->

Failed to eval Jinja expression - invalid operation: 'env_var': environment variable '...' not found

It also brings consistency with the error message for a failed compilation (https://github.com/dbt-labs/dbt-fusion/blob/main/crates/dbt-jinja-utils/src/jinja_environment.rs#L160):

Failed to compile Jinja expression - [...]

@fornwall fornwall force-pushed the what-jinja-expression branch from 1194c8c to e69c911 Compare July 13, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant