Add opcode summary to SubmitManyJobs errors
authorMichael Hanselmann <hansmi@google.com>
Wed, 23 Mar 2011 16:01:13 +0000 (17:01 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 23 Mar 2011 16:17:31 +0000 (17:17 +0100)
Requested-by: Iustin Pop <iustin@google.com>
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/jqueue.py

index 56f7a66..2871c6a 100644 (file)
@@ -1723,7 +1723,8 @@ class JobQueue(object):
         status = True
         data = job_id
       except errors.GenericError, err:
-        data = str(err)
+        data = ("%s; opcodes %s" %
+                (err, utils.CommaJoin(op.Summary() for op in ops)))
         status = False
       results.append((status, data))