-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return proper error message when empty profiles.yml is used for project #2297
Return proper error message when empty profiles.yml is used for project #2297
Conversation
1a6af7b
to
4f88355
Compare
@drewbanin Request for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this PR @sumanau7! This is a good and positive change, but I think there's also another closely related change for us to make here too.
Right now, if you have the following files:
# dbt_project.yml
name: debug
version: 1.0.0
profile: my_profile
# profiles.yml
my_profile:
dbt will also fail hard with an unhelpful error:
argument of type 'NoneType' is not iterable
Can we also address that case here too? This is the proximate bug described in #2292, but I am thrilled that you fixed another issue in here too!
a4240aa
to
c2dc216
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this PR @sumanau7! We can merge this as soon as you've updated the CHANGELOG.md file with the nature of this change :)
Nice work!
21da349
to
b78f515
Compare
Updated Changelog. |
f55e2ed
to
35b43e9
Compare
Another great PR, thanks for contributing to dbt! |
resolves #2292
Description
Return proper error message when profiles.yaml is empty
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.