-
Notifications
You must be signed in to change notification settings - Fork 26
Adds error message to deployment failure. #340
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
Conversation
411f3d5 to
2662151
Compare
On a failed deployment where the application already exists, additional context is added to the error message to provide the user with a recommended action.
2662151 to
a344d00
Compare
|
Verified. Previous Behavior: New Error: However when you specify an |
|
Resolves #247 |
Thanks, @kgartland-rstudio - I will add this change. |
a7512aa to
0249931
Compare
rsconnect/api.py
Outdated
| self.state["app_id"] = app_id | ||
| self.state["app_mode"] = app_mode | ||
| return self | ||
| try: |
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.
Marking this entire block for one error feels a bit odd, as other unrelated errors might occur. Another way to do this could be to use get_app_info to check whether the app still exists. The place for adding the specific exception would be L847-L857.
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, @bcwu - I've updated the try/except block to be more specific.
0249931 to
b97d0b8
Compare
|
@kgartland-rstudio - would you like to revalidate this? |
Sure, sorry I didn't see that was ready to go. |
No worries! This is pretty low priority. |
|
This looks good in both cases now: |
Description
Connected to #247
On a failed deployment where the application already exists, additional context is added to the error message to provide the user with a recommended action.
Testing Notes / Validation Steps
A new unit test is added to validate that the original exception is caught, the new message is appended, and a new exception is thrown.
Manual Validation
After step 3, the following type of error message should be presented: