Revision e6345c35
b/lib/cli.py | ||
---|---|---|
572 | 572 |
if status == constants.OP_STATUS_SUCCESS: |
573 | 573 |
has_ok = True |
574 | 574 |
elif status == constants.OP_STATUS_ERROR: |
575 |
errors.MaybeRaise(msg) |
|
575 | 576 |
if has_ok: |
576 | 577 |
raise errors.OpExecError("partial failure (opcode %d): %s" % |
577 | 578 |
(idx, msg)) |
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