Add non-critical warning for database port-forward failure

This commit is contained in:
Reditus committed 2026-05-16 19:55:02 +01:00
1 parent ba07989c71
commit ec9a86cdf1
1 file changed
+11 -3
+11 -3
View File
@@ -95,9 +95,17 @@ def check_db_port_forward(settings):
print(f" [OK] Database port-forward listening on localhost:{port}") print(f" [OK] Database port-forward listening on localhost:{port}")
return True return True
except Exception: except Exception:
print(f" [FAIL] Cannot connect to localhost:{port}") print("")
print(" NOTE: This is expected if the launcher hasn't started yet.") print("+----------------------------------------------------------+")
print(" Run the launcher and these will connect automatically.") 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 return False