Update main.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Taylor Wilsdon
2025-08-14 11:06:15 -04:00
committed by GitHub
parent 845d3f0db3
commit 90533bb5f9

View File

@@ -210,7 +210,7 @@ def main():
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.bind((socket.gethostbyname(""), port))
except OSError as e:
print(e)
safe_print(f"Socket error: {e}")
safe_print(f"❌ Port {port} is already in use. Cannot start HTTP server.")
sys.exit(1)