-
Notifications
You must be signed in to change notification settings - Fork 102
Friendlier error message on update repo #903
Friendlier error message on update repo #903
Conversation
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
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.
LGTM 👍🏼
Well done! 🚀
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.
Missing the tests for this case, you will have to simulate a 404 error
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
Added 404 error tests for each repo provider. |
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
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.
Nice job! 👏
@lucasdittrichzup this has been merged, but should still be tested in QA |
* Changing error message when repository version cannot be retrieved Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br> * added not found status for bitbucket repos Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br> * adding @fernandobelettizup to code owners list Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br> * moved error message to git package Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br> * added tests simulating 404 errors for each provider Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br> * extracted status code check to a single function Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br> * changes made to CODEOWNERS Signed-off-by: fernandobelettizup <fernando.beletti@zup.com.br>
Description
This pull request improves the error message when
update repo
breaks in case of repositories changing visibility or being deleted.New error messages follows:
Error: could not retrieve new versions for selected repository
Please check if it still exists or changed visiblity
Try adding it again using:
rit add repo
Additionaly I'm adding @fernandobelettizup to code owners and contributors list.
How to verify it
Steps:
rit add repo
add a public formula repository;rit update repo
Changelog
Friendlier error message on update repo