Hold the voice window open when the voice line dies
A crashed voice line on Windows closed its window before the error could be read, turning every failure into a mystery report. start.bat now holds the window with a pointer to the log when the process exits nonzero; a clean goodbye still closes quietly.
This commit is contained in:
1 parent
6692203a35
commit
b63d3de1cb
1 file changed
+8
@@ -46,4 +46,12 @@ if exist "backtalk\" (
|
|||||||
echo voice: starting in this window. Close it to hang up.
|
echo voice: starting in this window. Close it to hang up.
|
||||||
cd backtalk
|
cd backtalk
|
||||||
uv run python -m backtalk.main
|
uv run python -m backtalk.main
|
||||||
|
rem A clean goodbye exits 0 and the window may close. An error exits
|
||||||
|
rem nonzero, and the window HOLDS so the message can be read.
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo.
|
||||||
|
echo The voice line stopped with an error. The message is above.
|
||||||
|
echo The log lives in backtalk\logs\backtalk.log
|
||||||
|
pause
|
||||||
|
)
|
||||||
)
|
)
|
||||||
Reference in new issue
Block a user