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

import: fix output message on not-existing output directory #3509

Merged
merged 1 commit into from
Mar 19, 2020

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Mar 19, 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. πŸ™

Fixes #3338

b07a982 fixes exception message, i.e. removes stage working or file path confusion. It's either of those two now.

@skshetry skshetry added the bug Did we break something? label Mar 19, 2020
@skshetry skshetry requested review from Suor, pmrowla, efiop and pared March 19, 2020 09:32
@skshetry skshetry self-assigned this Mar 19, 2020
dvc/repo/imp_url.py Outdated Show resolved Hide resolved
@skshetry skshetry force-pushed the import-not-existing-path branch from 1915943 to b07a982 Compare March 19, 2020 11:55
@@ -557,7 +560,7 @@ def create(repo, accompany_outs=False, **kwargs):
else:
path = os.path.abspath(fname)

Stage._check_stage_path(repo, wdir)
Stage._check_stage_path(repo, wdir, is_wdir=kwargs.get("wdir"))
Copy link
Member Author

@skshetry skshetry Mar 19, 2020

Choose a reason for hiding this comment

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

This will only throw error with message "stage working dir" for dvc.run() cases where wdir is explicitly set.

@skshetry skshetry changed the title import: create directory if out does not exist import: fix output message on not-existing output directory Mar 19, 2020
@efiop efiop merged commit 84760dc into iterative:master Mar 19, 2020
@skshetry skshetry deleted the import-not-existing-path branch March 19, 2020 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Did we break something?
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect error message when importing to non-existent folder
3 participants