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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user