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