From b9c74e0b071907dceb07f397789c4887cc3adb66 Mon Sep 17 00:00:00 2001 From: Jacob Beck Date: Mon, 29 Apr 2019 14:08:39 -0600 Subject: [PATCH] Improve invalid test warnings/errors --- core/dbt/parser/schemas.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/dbt/parser/schemas.py b/core/dbt/parser/schemas.py index fc8bc943528..a96961d4fa6 100644 --- a/core/dbt/parser/schemas.py +++ b/core/dbt/parser/schemas.py @@ -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 @@ -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