mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: 可调的性能设置
This commit is contained in:
1 parent
8c8dcb89eb
commit
2bf1a18890
21 files changed
+237
-274
No files matched your search
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user