summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorDan Sandler <dsandler@android.com>2015-07-31 09:37:53 -0400
committerDan Sandler <dsandler@google.com>2015-07-31 14:03:50 +0000
commitc5cd433daf310694d1435fe30e22e1ad2217b1ab (patch)
tree4d0901ab306c62ce6394f290249445cbd0548d08 /subcmds/sync.py
parent53e902a19b0b80e07ac55966d13c5c84c5b0e8ce (diff)
downloadgit-repo-c5cd433daf310694d1435fe30e22e1ad2217b1ab.tar.gz
Emit project info in case of sync exception.
Previously repo would only print the failing project path if Sync_NetworkHalf returned false/empty, but if it threw an exception the print() was never called. Change-Id: I58c41de43930df5e34b21561c205e062a72e290f
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index a0a68960..b50df099 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -292,7 +292,9 @@ later is required to fix a server side protocol bug.
292 pm.update() 292 pm.update()
293 except _FetchError: 293 except _FetchError:
294 err_event.set() 294 err_event.set()
295 except: 295 except Exception as e:
296 print('error: Cannot fetch %s (%s: %s)' \
297 % (project.name, type(e).__name__, str(e)), file=sys.stderr)
296 err_event.set() 298 err_event.set()
297 raise 299 raise
298 finally: 300 finally: