Print example name in check-examples exception

This commit is contained in:
Guillaume Beraudo
2014-12-15 15:21:55 +01:00
parent 86561e5ef2
commit 3c00c7cf4c

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