Skip to content

Commit

Permalink
rf: Refactor of tex docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jul 27, 2024
1 parent c98cfac commit 9c8aeee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ def compile_latex(input_tex: str, output_pdf: str, timeout: int = 60) -> None:
else:
logger.error("Compilation failed with errors.")
print(f"{Fore.RED}❌ Error: Compilation failed.")
print(result.stdout)
print(result.stderr)
except subprocess.CalledProcessError as e:
logger.error(f"Compilation failed: {e}")
print(f"{Fore.RED}❌ Error: Compilation failed: {e}")
# print(e.stdout)
# print(e.stderr)
except subprocess.TimeoutExpired as e:
logger.error("Compilation process timed out.")
print(f"{Fore.RED}❌ Error: Compilation process timed out.")
Expand Down

0 comments on commit 9c8aeee

Please sign in to comment.