print error on symlink fails due to insufficient priveledges
This commit is contained in:
parent
153661d255
commit
ce99c92f7d
|
@ -305,8 +305,8 @@ class Link(dotbot.Plugin):
|
||||||
try:
|
try:
|
||||||
print(f"running symlink with args '{dotfile_source}', '{destination}'")
|
print(f"running symlink with args '{dotfile_source}', '{destination}'")
|
||||||
os.symlink(dotfile_source, destination)
|
os.symlink(dotfile_source, destination)
|
||||||
except OSError:
|
except OSError as e:
|
||||||
self._log.warning("Linking failed %s -> %s" % (target_path_to_link_at, dotfile_source))
|
self._log.warning("Linking failed, throwing OSEerror %s -> %s\n (%s)" % (target_path_to_link_at, dotfile_source, e))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(
|
print(
|
||||||
f"SYMLINK FAILED with arguments os.symlink({dotfile_source}, {destination})",
|
f"SYMLINK FAILED with arguments os.symlink({dotfile_source}, {destination})",
|
||||||
|
|
Loading…
Reference in a new issue