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
Check error before RetryServerErrors #435
Conversation
Hi @kisunji - thank you for this pull request! 💖 Curious if you saw some behavior in the tests that this PR fixes? Is there any additional context you could provide? 🤔 |
Hey! I think you're in the internal slack thread where a dev got a cryptic panic from the tests. My patch will allow the test to error properly and give important feedback:
|
With the new addition in #439 , simply add |
Yeah that works as a solution too! This PR is to prevent panics for someone who naively clones this repo and tries to run
|
If |
8ce9363
to
20e6306
Compare
I would advocate that if someone clones this repo and hasn't setup the required environment variables, we show a helpful message instead. How does that sound? |
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.
I don't see any problem with merging this. I think @annawinkler's suggestion is orthogonal and I created a task to deal with it because I think the test config assumes app.terraform.io, so a little analysis needs to be done.
Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes. |
Small PR to surface errors when calling
NewClient
before a nil client has a chance to panic.