mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: add translation api, add zh_CN.yaml
This commit is contained in:
1 parent
eec28d788a
commit
c16a1248a0
15 files changed
+88
-52
No files matched your search
@@ -65,7 +65,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('Cannot connect to sandbox service.');
|
||||
}
|
||||
return res.data;
|
||||
}
|
||||
@@ -86,7 +86,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('Cannot connect to sandbox service.', e.message);
|
||||
}
|
||||
// FIXME: Signalled?
|
||||
const ret: any = {
|
||||
|
||||
Reference in new issue
Block a user