1
0
Fork 0
mirror of synced 2024-11-14 12:48:57 -05:00

Provide more accurate warning message

This commit is contained in:
Benjamin Motz 2019-03-13 10:53:50 +01:00
parent 393c5942ba
commit 2ecb3ce35d

View file

@ -255,10 +255,10 @@ class Link(dotbot.Plugin):
# again, we use absolute_source to check for existence
elif not self._exists(absolute_source):
if self._is_link(link_name):
self._log.warning('Nonexistent target %s -> %s' %
self._log.warning('Nonexistent source %s -> %s' %
(link_name, source))
else:
self._log.warning('Nonexistent target for %s : %s' %
self._log.warning('Nonexistent source for %s : %s' %
(link_name, source))
else:
self._log.lowinfo('Link exists %s -> %s' % (link_name, source))