get: no relpath on output not found (#2435)

* get: no relpath on output not found

related #2430

* get: catch output not found
This commit is contained in:
Mr. Outis
2019-09-06 23:14:07 +03:00
committed by Ruslan Kuprieiev
parent b903fe8023
commit 190fbaa63b
+8 -1
View File
@@ -4,7 +4,12 @@ import shortuuid
from dvc.stage import Stage
from dvc.config import Config
from dvc.exceptions import NotDvcRepoError, UrlNotDvcRepoError, GetDVCFileError
from dvc.exceptions import (
NotDvcRepoError,
UrlNotDvcRepoError,
GetDVCFileError,
OutputNotFoundError,
)
from dvc.path_info import PathInfo
from dvc.external_repo import external_repo
from dvc.state import StateNoop
@@ -59,5 +64,7 @@ def get(url, path, out=None, rev=None):
except NotDvcRepoError:
raise UrlNotDvcRepoError(url)
except OutputNotFoundError:
raise OutputNotFoundError(path)
finally:
remove(tmp_dir)