Log TeX error directly
This commit is contained in:
parent
afc367cfb8
commit
77b0241406
2 changed files with 6 additions and 2 deletions
|
|
@ -1110,7 +1110,9 @@ class MemberListRenderView(LoginRequiredMixin, View):
|
|||
).wait()
|
||||
|
||||
if error:
|
||||
raise IOError("An error attempted while generating a WEI list (code=" + str(error) + ")")
|
||||
with open("{}/wei-list.log".format(tmp_dir), "r") as f:
|
||||
log = f.read()
|
||||
raise IOError("An error attempted while generating a WEI list (code=" + str(error) + ")\n\n" + log)
|
||||
|
||||
# Display the generated pdf as a HTTP Response
|
||||
with open("{}/wei-list.pdf".format(tmp_dir), 'rb') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue