Revision bcb66fca
b/lib/cli.py | ||
---|---|---|
716 | 716 |
if status == constants.OP_STATUS_SUCCESS: |
717 | 717 |
has_ok = True |
718 | 718 |
elif status == constants.OP_STATUS_ERROR: |
719 |
errors.MaybeRaise(msg) |
|
719 | 720 |
if has_ok: |
720 | 721 |
raise errors.OpExecError("partial failure (opcode %d): %s" % |
721 | 722 |
(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