File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,9 @@ def _resolve_table(table: str | exp.Table) -> str:
251251 if not expressions :
252252 raise ConfigError (f"Failed to parse an expression:\n { self ._expression } " )
253253 except Exception as ex :
254- raise ConfigError (f"Could not parse jinja at '{ self ._path } '.\n { ex } " ) from ex
254+ raise ConfigError (
255+ f"Could not parse the rendered jinja at '{ self ._path } '.\n { ex } "
256+ ) from ex
255257
256258 if this_model :
257259 render_kwargs ["this_model" ] = this_model
Original file line number Diff line number Diff line change @@ -8626,7 +8626,7 @@ def test_jinja_render_debug_logging(caplog):
86268626 model = load_sql_based_model (expressions )
86278627
86288628 # Attempt to render - this should fail due to invalid SQL syntax
8629- with pytest .raises (ConfigError , match = r"Could not parse jinja" ):
8629+ with pytest .raises (ConfigError , match = r"Could not parse the rendered jinja" ):
86308630 model .render_query ()
86318631
86328632 # Check that the rendered Jinja was logged
You can’t perform that action at this time.
0 commit comments