aboutsummaryrefslogtreecommitdiff
path: root/app/ui/runview.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-08-30 18:49:32 -0400
committerhistoria <historiavg@proton.me>2026-08-30 18:49:32 -0400
commit93f106aac2d6411c80a911adac62cd12f80e58be (patch)
tree5db8a2ff27f0d06ef313b3cf9ab84bf02f74479f /app/ui/runview.py
parentd31e9149c7f141b2d3c14a79e9f067d524c8c420 (diff)
downloadtts-audiobook-generator-93f106aac2d6411c80a911adac62cd12f80e58be.tar.gz
feat: output log path when audiobook generation fails
Diffstat (limited to 'app/ui/runview.py')
-rw-r--r--app/ui/runview.py7
1 files changed, 6 insertions, 1 deletions
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