Skip to content

dvc: show "Having any troubles?" only on unexpected errors #4496

Merged
efiop merged 2 commits intotreeverse:masterfrom
efiop:fix-4126
Aug 30, 2020
Merged

dvc: show "Having any troubles?" only on unexpected errors #4496
efiop merged 2 commits intotreeverse:masterfrom
efiop:fix-4126

Conversation

@efiop
Copy link
Contributor

@efiop efiop commented Aug 30, 2020

Fixes #4126

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

Comment on lines +28 to 29
except DvcException:
logger.exception("failed to destroy DVC")
Copy link
Contributor Author

@efiop efiop Aug 30, 2020

Choose a reason for hiding this comment

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

Doing this just to unify the behavior among all of the commands. We'll also need to reconsider(probably remove) Captain Obvious messages like this one, but that's too out-of-scope for this PR.

ret = 255
except Exception: # noqa, pylint: disable=broad-except
logger.exception("unexpected error")
logger.info(FOOTER)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Might also consider moving it to error, but for now leaving as is.

@efiop efiop merged commit fcbbfac into treeverse:master Aug 30, 2020
@efiop efiop deleted the fix-4126 branch August 30, 2020 21:11
@efiop efiop added enhancement Enhances DVC ui user interface / interaction labels Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhances DVC ui user interface / interaction

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider removing the support link from the CLI output

1 participant