dart: print more errors

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-09-10 01:59:13 +08:00
parent b927af1b7a
commit a7f40c7813
No known key found for this signature in database

View File

@ -239,7 +239,15 @@ def main():
if not (pkgs_url := resp["nextUrl"]):
break
# wait for all packages to be handled
for f in concurrent.futures.as_completed(pkg_futures):
try:
f.result()
except Exception as e:
logger.error(f"Error handling package: {e}")
pkg_executor.shutdown(wait=True)
download_executor.shutdown(wait=True)
if clean:
# clean up obsolete packages