From 58e357c992246160c4497fdf807895f10354ddd5 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sat, 22 Jul 2017 17:49:56 -0700 Subject: [PATCH] Report location of attempted output_file that fails to write --- ocrmypdf/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ocrmypdf/__main__.py b/ocrmypdf/__main__.py index b2da5b21..f9eddc49 100755 --- a/ocrmypdf/__main__.py +++ b/ocrmypdf/__main__.py @@ -675,8 +675,9 @@ def run_pipeline(): file.""")) return ExitCode.bad_args elif not is_file_writable(options.output_file): - _log.error(textwrap.dedent("""\ - Output file location is not writable.""")) + _log.error( + "Output file location (" + options.output_file + ") " + + "is not writable.") return ExitCode.file_access_error manager = JobContextManager()