From db99805085535d19226719e29a53d0c39ca885b5 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 12 Oct 2023 19:01:31 +0200 Subject: [PATCH] improve runtimeerror message --- rendercv/rendering.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rendercv/rendering.py b/rendercv/rendering.py index c271412..3a8cc2e 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -412,8 +412,9 @@ def run_latex(latex_file_path): ) except subprocess.CalledProcessError as e: raise RuntimeError( - "Running TinyTeX has failed with the following error: \n{e.output.decode()}" - " \n\nIf you can't find the problem, please try to re-install RenderCV, or" + "Running TinyTeX has failed with the following error:\n\n" + f"command \"{e.cmd}\" return with error (code {e.returncode}): {e.output}\n\n" + "If you can't find the problem, please try to re-install RenderCV, or" " open an issue on GitHub." )