mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge: errmsg: show langId
This commit is contained in:
1 file changed
+1
-1
@@ -258,7 +258,7 @@ export class JudgeTask {
|
|||||||
langId = `${s.pop()}.${langId}`;
|
langId = `${s.pop()}.${langId}`;
|
||||||
}
|
}
|
||||||
} else lang = this.session.getLang(langId, false);
|
} else lang = this.session.getLang(langId, false);
|
||||||
if (!lang) throw new FormatError(`Unknown ${type} language.`);
|
if (!lang) throw new FormatError(`Unknown ${type} language: ${langId}.`);
|
||||||
span.setAttribute('lang', langId);
|
span.setAttribute('lang', langId);
|
||||||
// TODO cache compiled binary
|
// TODO cache compiled binary
|
||||||
const result = await compile(lang, { src: file }, copyIn);
|
const result = await compile(lang, { src: file }, copyIn);
|
||||||
|
|||||||
Reference in new issue
Block a user