judge: add download fail report

This commit is contained in:
undefined committed 2021-10-29 17:51:34 +08:00
1 parent e23f9d2ef3
commit 6ebadeeb6d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ export default class Hydro {
f.data.pipe(w);
await new Promise((resolve, reject) => {
w.on('finish', resolve);
w.on('error', reject);
w.on('error', (e) => reject(new Error(`DownloadFail(${name}): ${e.message}`)));
});
}
const tasks = [];