Browse Source

Merge "Emit project info in case of sync exception."

Conley Owens 10 năm trước cách đây
mục cha
commit
555be54790
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      subcmds/sync.py

+ 3 - 1
subcmds/sync.py

@@ -314,7 +314,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: