Skip to content

Commit

Permalink
Merge pull request #1427 from fishtown-analytics/feature/better-schem…
Browse files Browse the repository at this point in the history
…a-test-errors

Improve invalid test warnings/errors (#1325)
  • Loading branch information
beckjake authored Apr 30, 2019
2 parents 8270c85 + b9c74e0 commit f587efd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/dbt/parser/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ def _parse_column(self, target, column, package_name, root_dir, path,
)
except dbt.exceptions.CompilationException as exc:
dbt.exceptions.warn_or_error(
'in {}: {}'.format(path, exc.msg), None
'Compilation warning: Invalid test config given in {}:'
'\n\t{}'.format(path, exc.msg), None
)
continue

Expand Down Expand Up @@ -342,7 +343,8 @@ def parse_models_entry(self, model_dict, path, package_name, root_dir):
root_dir, path)
except dbt.exceptions.CompilationException as exc:
dbt.exceptions.warn_or_error(
'in {}: {}'.format(path, exc.msg), test
'Compilation warning: Invalid test config given in {}:'
'\n\t{}'.format(path, exc.msg), None
)
continue
yield 'test', node
Expand Down

0 comments on commit f587efd

Please sign in to comment.