Skip to content

Commit

Permalink
Raise compilation error if no macros are found
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Oct 22, 2021
1 parent 6eb433f commit 2544741
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/dbt/context/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ def dispatch(
macro = self._namespace.get_from_package(
package_name, search_name
)
except CompilationException as exc:
raise CompilationException(
f'In dispatch: {exc.msg}',
) from exc
except CompilationException:
# Only raise CompilationException if macro is not found in
# any package
macro = None

if package_name is None:
attempts.append(search_name)
Expand Down

0 comments on commit 2544741

Please sign in to comment.