X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scanner_workflow.py;fp=scanner_workflow.py;h=787e34e593559320f774d925a4438eb3a589d398;hb=5e6fee0407e43d09cc77c870a3bc1c3d0442469a;hp=e803f9ee1fa4da4e6f5df62922e0328df6d72011;hpb=10eb2d2bbac61a5e816f8e2ad42ae3ead0e0bb05;p=scanner_workflow.git diff --git a/scanner_workflow.py b/scanner_workflow.py index e803f9e..787e34e 100755 --- a/scanner_workflow.py +++ b/scanner_workflow.py @@ -107,7 +107,9 @@ class ScannerWorkflow: output_file = self.output_dir / output_path / pdf_file.name res = subprocess.run(["ocrmypdf", *self.ocrmypdf_opts, pdf_file, output_file]) if res.returncode != 0: - error(f"Unable to properly OCR pdf: {res.stdout} {res.stderr}") + error( + f"Unable to properly OCR pdf {orig_pdf} into {output_file}: {res.stdout} {res.stderr}" + ) return pdf_file.unlink() info(f"Processed {orig_pdf} into {output_file}")