1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 02:34:18 +00:00

Print OS error message when link failed

Be more verbose by printing OSError exception message
This commit is contained in:
belugame
2018-11-11 15:13:37 +01:00
committed by GitHub
parent 5f76d0a9c0
commit f43ebf9278

View File

@@ -95,8 +95,8 @@ class Installer:
return [] return []
try: try:
utils.remove(dst) utils.remove(dst)
except OSError: except OSError as e:
self.log.err('something went wrong with {}'.format(src)) self.log.err('something went wrong with {}: {}'.format(src, e))
return [] return []
if self.dry: if self.dry:
self.log.dry('would link {} to {}'.format(dst, src)) self.log.dry('would link {} to {}'.format(dst, src))