diff options
author | Alexandre Garnier <zigarn@gmail.com> | 2015-09-09 15:51:31 +0200 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2016-02-18 01:29:54 +0000 |
commit | 4cfb6d7167424ff1a9ffe5319148d62b8d41edb5 (patch) | |
tree | ec38f259d0bcc6592bef4c7fe2cb6b95ad5f73e4 /subcmds/forall.py | |
parent | b29e61133e05a8c500fc4ddd0388bd8447a46372 (diff) | |
download | git-repo-4cfb6d7167424ff1a9ffe5319148d62b8d41edb5.tar.gz |
Better error display on forall
It was only displaying 'Project list error: GitError()'
without any useful info about the project nor the error
Change-Id: Iad66cbaa03cad1053b5ae9ecc90d7772aa42ac13
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r-- | subcmds/forall.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py index 96dc99d1..b10f34b3 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py | |||
@@ -240,7 +240,8 @@ without iterating through the remaining projects. | |||
240 | rc = rc or errno.EINTR | 240 | rc = rc or errno.EINTR |
241 | except Exception as e: | 241 | except Exception as e: |
242 | # Catch any other exceptions raised | 242 | # Catch any other exceptions raised |
243 | print('Got an error, terminating the pool: %r' % e, | 243 | print('Got an error, terminating the pool: %s: %s' % |
244 | (type(e).__name__, e), | ||
244 | file=sys.stderr) | 245 | file=sys.stderr) |
245 | pool.terminate() | 246 | pool.terminate() |
246 | rc = rc or getattr(e, 'errno', 1) | 247 | rc = rc or getattr(e, 'errno', 1) |
@@ -254,7 +255,8 @@ without iterating through the remaining projects. | |||
254 | try: | 255 | try: |
255 | project = self._SerializeProject(p) | 256 | project = self._SerializeProject(p) |
256 | except Exception as e: | 257 | except Exception as e: |
257 | print('Project list error: %r' % e, | 258 | print('Project list error on project %s: %s: %s' % |
259 | (p.name, type(e).__name__, e), | ||
258 | file=sys.stderr) | 260 | file=sys.stderr) |
259 | return | 261 | return |
260 | except KeyboardInterrupt: | 262 | except KeyboardInterrupt: |