clan-cli: Fix incorrect throw on clan update
This commit is contained in:
@@ -252,17 +252,19 @@ class AsyncRuntime:
|
|||||||
if task.finished and task.async_opts.check:
|
if task.finished and task.async_opts.check:
|
||||||
assert task.result is not None
|
assert task.result is not None
|
||||||
error = task.result.error
|
error = task.result.error
|
||||||
if log.isEnabledFor(logging.DEBUG):
|
if error is not None:
|
||||||
log.error(
|
if log.isEnabledFor(logging.DEBUG):
|
||||||
f"failed with error: {error}",
|
log.error(
|
||||||
extra={"command_prefix": name},
|
f"failed with error: {error}",
|
||||||
exc_info=error,
|
extra={"command_prefix": name},
|
||||||
)
|
exc_info=error,
|
||||||
else:
|
)
|
||||||
log.error(
|
else:
|
||||||
f"failed with error: {error}", extra={"command_prefix": name}
|
log.error(
|
||||||
)
|
f"failed with error: {error}",
|
||||||
err_count += 1
|
extra={"command_prefix": name},
|
||||||
|
)
|
||||||
|
err_count += 1
|
||||||
|
|
||||||
if err_count > 0:
|
if err_count > 0:
|
||||||
msg = f"{err_count} hosts failed with an error. Check the logs above"
|
msg = f"{err_count} hosts failed with an error. Check the logs above"
|
||||||
|
|||||||
Reference in New Issue
Block a user