Skip to content

Commit a7f40c7

Browse files
committed
dart: print more errors
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
1 parent b927af1 commit a7f40c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pub-mirror.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,15 @@ def main():
239239
if not (pkgs_url := resp["nextUrl"]):
240240
break
241241

242+
# wait for all packages to be handled
243+
for f in concurrent.futures.as_completed(pkg_futures):
244+
try:
245+
f.result()
246+
except Exception as e:
247+
logger.error(f"Error handling package: {e}")
248+
242249
pkg_executor.shutdown(wait=True)
250+
download_executor.shutdown(wait=True)
243251

244252
if clean:
245253
# clean up obsolete packages

0 commit comments

Comments
 (0)