From 8a5a2143b027a10b5317e3dc4674353161a1a0cb Mon Sep 17 00:00:00 2001 From: undefined Date: Fri, 15 May 2026 15:03:10 +0800 Subject: [PATCH] judge: errmsg: show langId --- packages/hydrojudge/src/task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrojudge/src/task.ts b/packages/hydrojudge/src/task.ts index 8adc02388..d60b54bfc 100644 --- a/packages/hydrojudge/src/task.ts +++ b/packages/hydrojudge/src/task.ts @@ -258,7 +258,7 @@ export class JudgeTask { langId = `${s.pop()}.${langId}`; } } 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); // TODO cache compiled binary const result = await compile(lang, { src: file }, copyIn);