This commit is contained in:
brent s 2017-10-05 09:49:11 -04:00
parent 20185dea68
commit 6c2dfce9a7

View File

@ -66,7 +66,7 @@ def sync(args):
os.remove(args['lockfile'])
# Only report errors at the end of the run if we aren't running in cron. Otherwise, log them.
errors = c.stderr.decode('utf-8').splitlines()
if os.isatty(sys.stdin.fileno()):
if os.isatty(sys.stdin.fileno()) and errors:
print('We encountered some errors:')
for e in errors:
if e.startswith('symlink has no referent: '):