[Feature] Clarify error when file(s) contain duplicate macros #10387
Labels
enhancement
New feature or request
help_wanted
Trickier changes, with a clear starting point, good for previous/experienced contributors
Is this a new bug in dbt-core?
Current Behavior
Reported from a user in Community Slack.
These two listed files contain duplicate macros, but confuse users because we list the file names, not the macros. Not only that, but in my repro I discovered that we always say "two" instead of how many duplicates actually exist and only report the first two files that conflict. That last bit may not be fixable given that we error out when it happens, but I propose that ideally we should say something like:
My repro error from straight Core:

User from Slack's error (looks like dbt Power User):

Expected Behavior
I would expect dbt to give me a clearer error re which files contain all the duplicate macros
Steps To Reproduce
dbt compile
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: