-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
get/import: improve error message on no default remote #2711
Comments
So is this just a wrong error message? |
I would say it's in a wrong place. We need to raise this only when we try to import a cached object and no default remote is specified. |
@shcheklein, @Suor I found out I could not run
As a newbie dvc user who might be missing something, I'd say it would be useful to:
|
+1 for better more specific message. |
Let's start with catching that error and re-raising something better. |
The place to wrap an exception in |
@Suor @efiop if we allow non-cached artifacts to be pulled from an external repo, why would we require any remotes at all? The case can (and we had something like this in the past) - use it to collect metrics and use +1 for improving messages. |
Btw, it's the second time someone is asking us about adding a parameter to specify remote that should be used for an external repo. Just for the record. |
Specifically this one is related: #2466 |
Let's discuss remote function param or cli in #2466. And leave this issue for message only. |
@Suor there are three parts to it:
|
This should probably be done as a part of implementing |
@efiop it affects API as well, so can be considered independent. That's at least the scope I had in mind creating the ticket :) Anyway, I don't have a strong opinion. If you feel it's better to take care of it as part of implementing |
@shcheklein That's a good point! Thinking about it, that issue is only relevant for |
If main point of this task is to remodel the message for |
@pared Sorry for the delay. Sure, feel free! |
@efiop renamed the issue, created new ticket for lifting the remote requirement, so that we do not lost track of it. |
@efiop In the PR that fixed this issue, we are passing the https://asciinema.org/a/Kxo0jgnTtLrK2ZPFWhI4VyzDU I think for the sake of UI we should not pass the cause, as it obstructs the readability of this exception. |
@pared Makes sense, please feel free to submit a PR for that. Reopen this issue if needed. |
Since we allow importing/getting files that are not cached this error does not make much sense:
in a lot of cases.
The text was updated successfully, but these errors were encountered: