From 3c00c7cf4c962ee142de629da6825b66b8b9fac4 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Mon, 15 Dec 2014 15:21:55 +0100 Subject: [PATCH] Print example name in check-examples exception --- build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.py b/build.py index abcda2669d..9b5348459d 100755 --- a/build.py +++ b/build.py @@ -32,7 +32,11 @@ class ThreadPool: try: function(*args, **kargs) except: + print("ERROR") + for count, thing in enumerate(args): + print '{0}. {1}'.format(count, thing) print(sys.exc_info()[0]) + print("ERROR") self.tasks.errors = True self.tasks.task_done()