mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: optional error params
This commit is contained in:
1 parent
ba3c6bb235
commit
69c6a34c34
2 files changed
+2
-2
No files matched your search
@@ -68,7 +68,7 @@ export default async function readCases(folder: string, cfg: Record<string, any>
|
||||
result.count = Math.sum(result.subtasks.map((i) => i.cases.length));
|
||||
if (cfg.isSelfSubmission) args.next?.({ message: { message: 'Found {0} testcases.', params: [result.count] } });
|
||||
} catch (e) {
|
||||
throw new SystemError('Cannot parse testdata.', [e.message, ...e.params]);
|
||||
throw new SystemError('Cannot parse testdata.', [e.message, ...(e.params || [])]);
|
||||
}
|
||||
}
|
||||
result.subtasks = normalizeSubtasks(result.subtasks || [], checkFile, config.time, config.memory);
|
||||
|
||||
Reference in new issue
Block a user