1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:09:44 +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 []
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))