Skip to content

RemoteNotSpecifiedInExternalRepoError: dont pass cause of exception #2854

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

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

pared
Copy link
Contributor

@pared pared commented Nov 26, 2019

  • ❗ Have you followed the guidelines in the Contributing to DVC list?

  • πŸ“– Check this box if this PR does not require documentation updates, or if it does and you have created a separate PR in dvc.org with such updates (or at least opened an issue about it in that repo). Please link below to your PR (or issue) in the dvc.org repo.

  • ❌ Have you checked DeepSource, CodeClimate, and other sanity checks below? We consider their findings recommendatory and don't expect everything to be addressed. Please review them carefully and fix those that actually improve code or fix bugs.

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™

Related to #2711
Original solution (#2777) was passing cause of exception resulting in obscure error message:

https://asciinema.org/a/283668

For the sake of UI we agreed not to pass the cause, so that we don't end up with this long message.

https://asciinema.org/a/283669

@pared pared requested a review from jorgeorpinel November 26, 2019 13:40
@efiop efiop requested a review from a user November 26, 2019 14:41
@@ -333,12 +333,11 @@ class CollectCacheError(DvcException):


class RemoteNotSpecifiedInExternalRepoError(DvcException):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
class RemoteNotSpecifiedInExternalRepoError(DvcException):
class NoRemoteInExternalRepoError(DvcException):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@pared pared mentioned this pull request Nov 27, 2019
@efiop efiop merged commit 78942ca into iterative:master Nov 27, 2019
@efiop
Copy link
Contributor

efiop commented Nov 27, 2019

Thanks @pared ! πŸŽ‰

@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented Nov 27, 2019

Oops I didn't mean to approve my review haha sorry. @pared please check my questions in #2854 (review)

@efiop
Copy link
Contributor

efiop commented Nov 27, 2019

@jorgeorpinel Oh, sorry about that. πŸ™I'm sure @pared will address your comments. πŸ™‚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants