1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 06:13:49 +00:00

Merge pull request #64 from belugame/patch-1

Print OS error message when link failed
This commit is contained in:
deadc0de
2018-11-12 09:49:03 +01:00
committed by GitHub

View File

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