mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00

Whenever latex fails (for example due to a missing package) the code continue and ends up failing due to a missing svg file. Handle latex non 0 exit code. Pass to latex -halt-on-error so it does not attempt to ask user for a file, that is ignored in batch mode anyway. Write the latex output to stderr and raise an exception to abort early. Signed-off-by: Antoine Musso <hashar@free.fr>