print error message with linebreaks
This commit is contained in:
parent
febb2414a7
commit
7e3d88afd3
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def fillpdfform(fields, pdf, pdfout, fdf):
|
||||||
exitcode = pdfcreation.wait(timeout=5)
|
exitcode = pdfcreation.wait(timeout=5)
|
||||||
if exitcode != 0: # todo: remove magical number
|
if exitcode != 0: # todo: remove magical number
|
||||||
_, errortext = pdfcreation.communicate()
|
_, errortext = pdfcreation.communicate()
|
||||||
errortext = str(errortext)
|
errortext = errortext.decode()
|
||||||
raise cmd.CalledProcessError(returncode=exitcode,
|
raise cmd.CalledProcessError(returncode=exitcode,
|
||||||
cmd=pdfcreation,
|
cmd=pdfcreation,
|
||||||
output="pdftk fillform reported an error."
|
output="pdftk fillform reported an error."
|
||||||
|
|
Loading…
Reference in a new issue