improve runtimeerror message

This commit is contained in:
Sina Atalay 2023-10-12 19:01:31 +02:00
parent 70e8bac661
commit db99805085
1 changed files with 3 additions and 2 deletions

View File

@ -412,8 +412,9 @@ def run_latex(latex_file_path):
) )
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
raise RuntimeError( raise RuntimeError(
"Running TinyTeX has failed with the following error: \n{e.output.decode()}" "Running TinyTeX has failed with the following error:\n\n"
" \n\nIf you can't find the problem, please try to re-install RenderCV, or" 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." " open an issue on GitHub."
) )