From bdc657ba6f11e56f26d9a73028f775beea3bf690 Mon Sep 17 00:00:00 2001 From: Jonne Date: Mon, 18 Mar 2024 05:11:53 +0200 Subject: [PATCH] Update error message in receive function --- client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.py b/client.py index 6ed5976..0b55aa3 100644 --- a/client.py +++ b/client.py @@ -20,7 +20,7 @@ def receive(): message = client.recv(1024).decode('utf-8') print(message) except Exception as e: - print("An error occured!") + print(f"Error receiving message: {e}") client.close() break