aboutsummaryrefslogtreecommitdiff
path: root/app/ui/runview.py
diff options
context:
space:
mode:
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