mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core&judge: log download errors
This commit is contained in:
1 parent
d1a652d364
commit
7d6b1f3bbc
4 files changed
+18
-6
No files matched your search
@@ -151,6 +151,7 @@ export class JudgeFilesDownloadHandler extends Handler {
|
||||
@post('pid', Types.UnsignedInt)
|
||||
async post(domainId: string, files: Set<string>, pid: number) {
|
||||
const pdoc = await problem.get(domainId, pid);
|
||||
if (!pdoc) this.response.body.links = null;
|
||||
const links = {};
|
||||
for (const file of files) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
|
||||
Reference in new issue
Block a user