Skip to content
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

Improve error handling when dbt manifest is not found #31

Merged
merged 9 commits into from
May 27, 2024

Conversation

matthieucan
Copy link
Contributor

No description provided.

Copy link
Contributor

@jochemvandooren jochemvandooren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

src/dbt_score/cli.py Outdated Show resolved Hide resolved
"dbt's manifest.json could not be found. If you're in a dbt project, be "
"sure to run 'dbt parse' first, or use the option '--run-dbt-parse'."
)
ctx.exit(2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate a little bit on this? Why not just raising an error for example?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the idea is to improve the UX, and not confuse users with a stacktrace they don't care about, but rather a more helpful message

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's fair, thanks!

Copy link
Contributor

@jochemvandooren jochemvandooren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving already, but test needs to be fixed! 👌

@matthieucan
Copy link
Contributor Author

Approving already, but test needs to be fixed! 👌

Yesss my bad, it's fixed now :)

@matthieucan matthieucan merged commit 38be817 into master May 27, 2024
2 checks passed
@matthieucan matthieucan deleted the matthieucan/manifest-not-found branch May 27, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants