mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-31 15:50:03 +01:00 
			
		
		
		
	Log TeX error directly
This commit is contained in:
		| @@ -217,7 +217,9 @@ class InvoiceRenderView(LoginRequiredMixin, View): | ||||
|                 ).wait() | ||||
|  | ||||
|                 if error: | ||||
|                     raise IOError("An error attempted while generating a invoice (code=" + str(error) + ")") | ||||
|                     with open("{}/invoice-{:d}.log".format(tmp_dir, pk), "r") as f: | ||||
|                         log = f.read() | ||||
|                     raise IOError("An error attempted while generating a invoice (code=" + str(error) + ")\n\n" + log) | ||||
|  | ||||
|             # Display the generated pdf as a HTTP Response | ||||
|             pdf = open("{}/invoice-{}.pdf".format(tmp_dir, pk), 'rb').read() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user