Parcourir la source

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

Conley Owens il y a 10 ans
Parent
commit
555be54790
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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: