Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
run-dev: Clarify magic number for errno.EADDRINUSE.
Anders Kaseorg13d92acdb326
diff --git a/tools/run-dev b/tools/run-devindex 56521753e9b..219537a2336 100755--- a/tools/run-dev+++ b/tools/run-dev@@ -1,6 +1,7 @@#!/usr/bin/env python3import argparseimport asyncio+import errnoimport osimport pwdimport signal@@ -359,7 +360,7 @@ async def serve() -> None:try:app.listen(proxy_port, address=options.interface)except OSError as e:- if e.errno == 98:+ if e.errno == errno.EADDRINUSE:print("\n\nERROR: You probably have another server running!!!\n\n")raise