From 7a67279c266dec565aee2545cd5ce538b5ba3fb4 Mon Sep 17 00:00:00 2001 From: Kierre Date: Sat, 8 Nov 2025 20:19:40 -0500 Subject: [PATCH] Fix TCP error messages --- index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.py b/index.py index f587a04..2818533 100644 --- a/index.py +++ b/index.py @@ -80,14 +80,14 @@ def tcp_ping(service): handle_service_status( service_name=name, down=True, - error=f"[E] Connection to {host}:{port} timed out", + error=f"Connection to {name} timed out", ) except Exception as err: handle_service_status( service_name=name, down=True, - error=f"[E] Connection error: {err}", + error=str(err), ) time.sleep(config["pinging"]["seconds_between_ping"])