diff options
-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: |