get/import: more meaningful message on NoRemoteError

This commit is contained in:
pawel
2019-11-11 12:53:24 +01:00
parent 947b39f47a
commit deba7e95da
3 changed files with 19 additions and 1 deletions
+7
View File
@@ -328,3 +328,10 @@ class CheckoutError(DvcException):
class CollectCacheError(DvcException):
pass
class RemoteNotSpecifiedInTargetRepoError(DvcException):
def __init__(self, url):
super(RemoteNotSpecifiedInTargetRepoError, self).__init__(
"No DVC remote is specified in target repository '{}'".format(url)
)