Compilation-error detail always lost on graded submit (shows bare 'Compilation failed.')
Débutant
good first issue
3 ★
Poids du clone léger
Mise à jour
Description
**Severity:** Medium
On a compilation error the engine returns an **empty** `test_results` and puts the message in `compile_output`. But `src/server/judge.ts:94` reads it from `result.test_case_results?.[0]?.stderr`, so users always see the fallback `"Compilation failed."` with no compiler output. The `/api/run` path already handles this correctly (`src/app/api/run/route.ts:108`).
**Where**
- `src/server/judge.ts:94` (graded submit)
- `src/app/api/monstr/contests/[id]/run/route.ts:187` (same bug in the Monstr run route)
**Fix**
`const firstError = result.compile_output || result.test_case_results?.[0]?.stderr || "Compilation failed.";`
Mirror the same fallback in the Monstr run route.
**Acceptance:** a program with a syntax error shows the real compiler message.
Issues similaires
Tout voir
TypeScript
Débutant
[Good First Issue] 🐡 Add new Japan Fact 251 - Beginner-Friendly Open-source Contribution
## 🟢 Good First Issue: Add Japan Fact #251 — Beginner-Friendly Open Source Contribution ![Time: <1 minute](h…
Mise à jour
TypeScript
Débutant
Error bucketing
It would be great to bucket the errors in different types i.e. Code exception, configuration exception, envir…
Mise à jour
TypeScript
Débutant
LP lock links omit the /token|lp/ URL segment, causing wrong-type lookups on the detail page
## Summary Lock detail links should include the lock's kind in the URL, e.g. `/app/lock/lp/:id` or `/app/loc…
Mise à jour