Skip to content
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

ui: simplify/shorten error messages #3730

Merged
merged 2 commits into from
May 4, 2020
Merged

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented May 4, 2020

  • ❗ I have followed the Contributing to DVC checklist.

  • πŸ“– If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

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

closes #3706 and closes #3718

@skshetry skshetry added the ui user interface / interaction label May 4, 2020
@skshetry skshetry requested a review from efiop May 4, 2020 04:56
@skshetry skshetry self-assigned this May 4, 2020
Comment on lines +61 to +63
except DvcException:
ret = 255
logger.exception("")
Copy link
Member Author

Choose a reason for hiding this comment

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

DvcException won't have unexpected error prepended. Other exceptions and assertion errors will still have that prefixed, which is a good compromise, I'd say.

dvc/stage/exceptions.py Outdated Show resolved Hide resolved
dvc/exceptions.py Outdated Show resolved Hide resolved
@skshetry skshetry requested a review from efiop May 4, 2020 13:09
@efiop efiop merged commit c186a8e into iterative:master May 4, 2020
@skshetry skshetry deleted the shorten-err-msg branch May 4, 2020 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui user interface / interaction
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR: unexpected error - are any errors expected by the user? run: ui issue for run
2 participants