Display git subprocess errors upon exception.

This commit is contained in:
voussoir 2020-01-29 16:39:31 -08:00
parent 17aabe961d
commit 3928922731

View file

@ -108,7 +108,11 @@ def gitcheckup(do_fetch=False):
return 1 return 1
for directory in directories: for directory in directories:
try:
result = checkup(directory, do_fetch=do_fetch) result = checkup(directory, do_fetch=do_fetch)
except subprocess.CalledProcessError as exc:
raise Exception(exc.output)
committed = 'C' if result.committed else ' ' committed = 'C' if result.committed else ' '
pushed = 'P' if result.pushed else ' ' pushed = 'P' if result.pushed else ' '