Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error when port is taken #247

Closed
t3dotgg opened this issue Jul 6, 2022 · 2 comments
Closed

Better error when port is taken #247

t3dotgg opened this issue Jul 6, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@t3dotgg
Copy link

t3dotgg commented Jul 6, 2022

...just lost a lot of time to this lol

@Jarred-Sumner
Copy link
Collaborator

😢 sorry

@Electroid
Copy link
Contributor

We've made this better since Bun v1.0.

 bun taken.js
1 | Bun.serve({ port: 1337, fetch: () => {} });
2 | Bun.serve({ port: 1337, fetch: () => {} });
   ^
EADDRINUSE: Failed to start server. Is port 1337 in use?
 syscall: "listen"

      at /Users/ashcon/Desktop/code/example/taken.js:2:0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants