Revision e6345c35 lib/jqueue.py

b/lib/jqueue.py
460 460
            try:
461 461
              try:
462 462
                op.status = constants.OP_STATUS_ERROR
463
                op.result = str(err)
463
                if isinstance(err, errors.GenericError):
464
                  op.result = errors.EncodeException(err)
465
                else:
466
                  op.result = str(err)
464 467
                op.end_timestamp = TimeStampNow()
465 468
                logging.info("Op %s/%s: Error in opcode %s: %s",
466 469
                             idx + 1, count, op_summary, err)

Also available in: Unified diff