-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add error message for validate connections #1554
Conversation
Codecov ReportBase: 94.01% // Head: 97.71% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1554 +/- ##
==========================================
+ Coverage 94.01% 97.71% +3.69%
==========================================
Files 89 22 -67
Lines 4347 787 -3560
Branches 428 0 -428
==========================================
- Hits 4087 769 -3318
+ Misses 178 18 -160
+ Partials 82 0 -82 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Co-authored-by: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com>
for more information, see https://pre-commit.ci
# Description ## What is the current behavior? Currently, we are not giving any hints to the user about an invalid/failed connection. closes: #1535 ## What is the new behavior? Print an error message when validating a connection. ## Does this introduce a breaking change? Yes, kind of. We are not erroring out anymore when the file path internally could not get resolved in case of sqlite connections. This is so that an invalid sqlite connection does not block you from running any generate/validate/run commands. Previously it was raising an exception which led to an immediate exit. ### Checklist - [x] Created tests which fail without the change (if possible) - [ ] Extended the README / documentation, if necessary Co-authored-by: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
What is the current behavior?
Currently, we are not giving any hints to the user about an invalid/failed connection.
closes: #1535
What is the new behavior?
Print an error message when validating a connection.
Does this introduce a breaking change?
Yes, kind of. We are not erroring out anymore when the file path internally could not get resolved in case of sqlite connections. This is so that an invalid sqlite connection does not block you from running any generate/validate/run commands. Previously it was raising an exception which led to an immediate exit.
Checklist