judge: add translation api, add zh_CN.yaml

This commit is contained in:
undefined committed 2020-11-27 22:58:14 +08:00
1 parent eec28d788a
commit c16a1248a0
15 files changed
+88 -52

No files matched your search

+2 -2
View File
@@ -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 = {