Skip to content

Commit

Permalink
Improving message description for compile error in get_fixtu… (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroBlanco2001 authored May 15, 2024
1 parent b0b7d29 commit 2e7d04c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changes/unreleased/Features-20240511-032253.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Features
body: Improvement of the compile error message in the get_fixture-sql.sql when the
relation or the model not exist
time: 2024-05-11T03:22:53.40817477-05:00
custom:
Author: AlejandroBlanco2001
Issue: "10014"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{%- endif -%}

{%- if not column_name_to_data_types -%}
{{ exceptions.raise_compiler_error("Not able to get columns for unit test '" ~ model.name ~ "' from relation " ~ this) }}
{{ exceptions.raise_compiler_error("Not able to get columns for unit test '" ~ model.name ~ "' from relation " ~ this ~ " because the relation doesn't exist") }}
{%- endif -%}

{%- for column_name, column_type in column_name_to_data_types.items() -%}
Expand Down

0 comments on commit 2e7d04c

Please sign in to comment.