yavsc/src/Yavsc.Api/Helpers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Paul Schneider 3f01a3ee74 PDF gen: capture lualatex stdout/stderr into the error message
The detailed LaTeX error (missing .sty, missing \includegraphics
target, …) was being lost: we only redirected stdin, and the engine
writes its diagnostics to the .log file we delete in cleanup. So a
generation failure surfaced only as the terse "Emergency stop" in the
journal, with no clue what actually failed.

Redirect stdout and stderr, and on non-zero exit include them in
GenerationErrorMessage so the caller sees the real engine diagnostic.
Keep the .log file on failure (only clean it on success) so it can be
inspected alongside.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-22 03:31:10 +01:00
..
RequestHelpers.cs post the file 2026-09-18 13:38:42 +01:00
TeXHelpers.cs PDF gen: capture lualatex stdout/stderr into the error message 2026-09-22 03:31:10 +01:00