From 93f106aac2d6411c80a911adac62cd12f80e58be Mon Sep 17 00:00:00 2001 From: historia Date: Sun, 30 Aug 2026 18:49:32 -0400 Subject: feat: output log path when audiobook generation fails --- app/ui/runview.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/ui/runview.py') diff --git a/app/ui/runview.py b/app/ui/runview.py index b3a1ab0..19a8f64 100644 --- a/app/ui/runview.py +++ b/app/ui/runview.py @@ -479,7 +479,8 @@ class RunView(ScreenView): Output directory, one line per book with its generated file names and OK/FAIL status (plus the failure detail), a success count, and - the total elapsed time. + the total elapsed time. A failed run ends with the converter's log + file path, where the details behind the [FAIL] lines live. """ from converter.converter import AUDIOBOOKS_FOLDER lines = ["Audiobook generation finished", @@ -501,6 +502,10 @@ class RunView(ScreenView): finished = self.finished_at or self._now() elapsed = finished - (started if started is not None else finished) lines.append(f"Elapsed time: {_format_elapsed(elapsed)}") + if (self.phase == "error" or ok_count < total) \ + and self.config.log_path: + lines.append(f"Full details in the log file: " + f"{self.config.log_path}") return "\n".join(lines) _server_stopped_confirmed = False -- cgit v1.2.3