diff options
author | Dan Sandler <dsandler@android.com> | 2015-07-31 09:37:53 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@google.com> | 2015-07-31 14:03:50 +0000 |
commit | c5cd433daf310694d1435fe30e22e1ad2217b1ab (patch) | |
tree | 4d0901ab306c62ce6394f290249445cbd0548d08 | |
parent | 53e902a19b0b80e07ac55966d13c5c84c5b0e8ce (diff) |
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
-rw-r--r-- | subcmds/sync.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index a0a6896..b50df09 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -292,7 +292,9 @@ later is required to fix a server side protocol bug. pm.update() except _FetchError: err_event.set() - except: + except Exception as e: + print('error: Cannot fetch %s (%s: %s)' \ + % (project.name, type(e).__name__, str(e)), file=sys.stderr) err_event.set() raise finally: |