mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: add download fail report
This commit is contained in:
1 parent
e23f9d2ef3
commit
6ebadeeb6d
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.12.3",
|
"version": "2.12.4",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -212,7 +212,7 @@ export default class Hydro {
|
|||||||
f.data.pipe(w);
|
f.data.pipe(w);
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
w.on('finish', resolve);
|
w.on('finish', resolve);
|
||||||
w.on('error', reject);
|
w.on('error', (e) => reject(new Error(`DownloadFail(${name}): ${e.message}`)));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const tasks = [];
|
const tasks = [];
|
||||||
|
|||||||
Reference in new issue
Block a user