core&judge: log download errors

This commit is contained in:
undefined committed 2022-10-30 12:55:46 +08:00
1 parent d1a652d364
commit 7d6b1f3bbc
4 files changed
+18 -6

No files matched your search

+1
View File
@@ -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