Skip to content

Commit

Permalink
check for node name uniqueness across refable resource types (#737)
Browse files Browse the repository at this point in the history
* check for node name uniqueness across refable resource types

* change test for new error msg

* consistent error message for dupes

* small refactor, improve error msg

* fix tests


automatic commit by git-black, original commits:
  e20796e
  • Loading branch information
drewbanin authored and iknox-fa committed Feb 8, 2022
1 parent 12c47b9 commit 8049e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,9 @@ def raise_duplicate_resource_name(node_1, node_2):

raise_compiler_error(
'dbt found two resources with the name "{}". Since these resources '
'have the same name,\ndbt will be unable to find the correct resource '
"have the same name,\ndbt will be unable to find the correct resource "
"when {} is used. To fix this,\nchange the name of one of "
'these resources:\n- {} ({})\n- {} ({})'.format(
"these resources:\n- {} ({})\n- {} ({})".format(
duped_name,
get_func,
node_1.unique_id,
Expand Down

0 comments on commit 8049e64

Please sign in to comment.