Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 5, 2024
1 parent 9dcf67a commit d85823f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/otaclient/ota_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,10 @@ def _execute_update(self):
try:
self._download_files(otameta, delta_bundle.get_download_list())
except TasksEnsureFailed:
# NOTE: the only cause of a TaskEnsureFailed being raised is the download_watchdog timeout.
_err_msg = f"download stalls longer than {cfg.DOWNLOAD_INACTIVE_TIMEOUT}, abort OTA"
_err_msg = (
"download aborted due to download stalls longer than "
f"{cfg.DOWNLOAD_INACTIVE_TIMEOUT}, or otaclient process is terminated, abort OTA"
)
logger.error(_err_msg)
raise ota_errors.NetworkError(_err_msg, module=__name__) from None
finally:
Expand Down

0 comments on commit d85823f

Please sign in to comment.