From ec9a86cdf1df54c6eb56f5de9ff31fa277e6858f Mon Sep 17 00:00:00 2001 From: Sutider Date: Sat, 16 May 2026 19:55:02 +0100 Subject: [PATCH] Add non-critical warning for database port-forward failure --- scripts/diagnostic.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/diagnostic.py b/scripts/diagnostic.py index 0b231c9..6b4b69a 100644 --- a/scripts/diagnostic.py +++ b/scripts/diagnostic.py @@ -95,9 +95,17 @@ def check_db_port_forward(settings): print(f" [OK] Database port-forward listening on localhost:{port}") return True except Exception: - print(f" [FAIL] Cannot connect to localhost:{port}") - print(" NOTE: This is expected if the launcher hasn't started yet.") - print(" Run the launcher and these will connect automatically.") + print("") + print("+----------------------------------------------------------+") + print("| [FAIL] Database port-forward not connected |") + print("| |") + print("| *** THIS IS NOT CRITICAL *** |") + print("| The database port-forward requires the launcher to be |") + print("| running. If you're just running diagnostics standalone, |") + print("| this will fail. Start the launcher first - it sets up |") + print("| the SSH tunnel and port-forwards automatically. |") + print("+----------------------------------------------------------+") + print("") return False