Commit ee2d042
fix(exams): add Sentry capture + better logging for AI grading errors
Grading errors were silently swallowed in try/catch. Now logs the
grading result error and reports exceptions to Sentry with examId
and submissionId context.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 39d527d commit ee2d042
2 files changed
Lines changed: 9 additions & 1 deletion
File tree
- app
- [locale]/dashboard/student/courses/[courseId]/exams/[examId]
- actions
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
457 | 462 | | |
458 | 463 | | |
459 | 464 | | |
| |||
0 commit comments