Merge pull request #3042 from gberaudo/example_name_in_check_examples_exception

Print example name in check-examples exception
This commit is contained in:
Éric Lemoine
2014-12-15 16:31:11 +01:00

View File

@@ -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()