mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-27 07:18:28 +01:00
system: add a better message if symlink failed
This commit is contained in:
+2
-1
@@ -38,7 +38,8 @@ class System(object):
|
||||
os.symlink(source, link_name)
|
||||
return
|
||||
except Exception as exc:
|
||||
raise DvcException('symlink', cause=exc)
|
||||
msg = "Failed to symlink '{}' -> '{}': {}"
|
||||
raise DvcException(msg.format(source, link_name, str(exc)))
|
||||
|
||||
flags = 0
|
||||
if source is not None and os.path.isdir(source):
|
||||
|
||||
Reference in New Issue
Block a user