From ce99c92f7d0aa6a1cc3ca4b96ddb1bad8c85c2bf Mon Sep 17 00:00:00 2001 From: Matt Richards Date: Mon, 1 Mar 2021 20:29:45 +1000 Subject: [PATCH] print error on symlink fails due to insufficient priveledges --- dotbot/plugins/link.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py index 07aa5be..a39967d 100644 --- a/dotbot/plugins/link.py +++ b/dotbot/plugins/link.py @@ -305,8 +305,8 @@ class Link(dotbot.Plugin): try: print(f"running symlink with args '{dotfile_source}', '{destination}'") os.symlink(dotfile_source, destination) - except OSError: - self._log.warning("Linking failed %s -> %s" % (target_path_to_link_at, dotfile_source)) + except OSError as e: + self._log.warning("Linking failed, throwing OSEerror %s -> %s\n (%s)" % (target_path_to_link_at, dotfile_source, e)) except Exception as e: print( f"SYMLINK FAILED with arguments os.symlink({dotfile_source}, {destination})",