diff --git a/dvc/remote/ssh/connection.py b/dvc/remote/ssh/connection.py index 4e1e52a43..dcbb1727c 100644 --- a/dvc/remote/ssh/connection.py +++ b/dvc/remote/ssh/connection.py @@ -106,7 +106,10 @@ class SSHConnection: # Since paramiko errors are very vague we need to recheck # whether it's because path already exists or something else if e.errno == errno.EACCES or not self.exists(path): - raise + raise DvcException( + "unable to create remote directory '{}'".format(path), + cause=e, + ) def walk(self, directory, topdown=True): # NOTE: original os.walk() implementation [1] with default options was