judge: 可调的性能设置

This commit is contained in:
undefined committed 2021-01-21 22:56:35 +08:00
1 parent 8c8dcb89eb
commit 2bf1a18890
21 files changed
+237 -274

No files matched your search

+2 -2
View File
@@ -66,7 +66,7 @@ export async function runMultiple(execute) {
body.cmd[1].files[1] = null;
res = await axios.post('/run', body);
} catch (e) {
throw new SystemError('Cannot connect to sandbox service.');
throw new SystemError('Sandbox Error');
}
return res.data;
}
@@ -87,7 +87,7 @@ export async function run(execute, params?) {
[result] = res.data;
} catch (e) {
// FIXME request body larger than maxBodyLength limit
throw new SystemError('Cannot connect to sandbox service.', e.message);
throw new SystemError('Sandbox Error', e.message);
}
// FIXME: Signalled?
const ret: any = {