summaryrefslogtreecommitdiffstats
path: root/subcmds/forall.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/forall.py')
-rw-r--r--subcmds/forall.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/subcmds/forall.py b/subcmds/forall.py
index 9a02c49f..287f2e04 100644
--- a/subcmds/forall.py
+++ b/subcmds/forall.py
@@ -28,8 +28,10 @@ from command import DEFAULT_LOCAL_JOBS
28from command import MirrorSafeCommand 28from command import MirrorSafeCommand
29from command import WORKER_BATCH_SIZE 29from command import WORKER_BATCH_SIZE
30from error import ManifestInvalidRevisionError 30from error import ManifestInvalidRevisionError
31from repo_logging import RepoLogger
31 32
32 33
34logger = RepoLogger(__file__)
33_CAN_COLOR = [ 35_CAN_COLOR = [
34 "branch", 36 "branch",
35 "diff", 37 "diff",
@@ -293,10 +295,10 @@ without iterating through the remaining projects.
293 rc = rc or errno.EINTR 295 rc = rc or errno.EINTR
294 except Exception as e: 296 except Exception as e:
295 # Catch any other exceptions raised 297 # Catch any other exceptions raised
296 print( 298 logger.error(
297 "forall: unhandled error, terminating the pool: %s: %s" 299 "forall: unhandled error, terminating the pool: %s: %s",
298 % (type(e).__name__, e), 300 type(e).__name__,
299 file=sys.stderr, 301 e,
300 ) 302 )
301 rc = rc or getattr(e, "errno", 1) 303 rc = rc or getattr(e, "errno", 1)
302 if rc != 0: 304 if rc != 0: