Skip to content

Commit

Permalink
Update error message in receive function
Browse files Browse the repository at this point in the history
  • Loading branch information
JonneSaloranta committed Mar 18, 2024
1 parent 8ff25a1 commit bdc657b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bdc657b

Please sign in to comment.