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

fix(Bun.serve): return EACCESS when we don't have perms #7191

Merged
merged 4 commits into from
Nov 19, 2023

Conversation

liz3
Copy link
Contributor

@liz3 liz3 commented Nov 17, 2023

The error reported to js land when listening fails was always the same, this adds a second one for EACCESS when we are not the super user.

Fixes: #7187

What does this PR do?

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

  • I included a test for the new code, or existing tests cover it
  • I ran my tests locally and they pass (bun-debug test test-file-name.test)

The error reported to js land when listening fails was always the same,
this adds a second one for EACCESS when we are not the super user.

Fixes: oven-sh#7187
@paperdave
Copy link
Collaborator

nice

@liz3
Copy link
Contributor Author

liz3 commented Nov 17, 2023

@paperdave should be gud now

@paperdave paperdave merged commit 778bad9 into oven-sh:main Nov 19, 2023
19 of 28 checks passed
ryoppippi pushed a commit to ryoppippi/bun that referenced this pull request Feb 1, 2024
* fix(Bun.serve): return EACCESS when we don't have perms

The error reported to js land when listening fails was always the same,
this adds a second one for EACCESS when we are not the super user.

Fixes: oven-sh#7187

* fix: adjust code to be only ran on linuz

* fix: correct typo

* fix: remove comment since its linux only now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error message with Bun.serve for EACCESS is shown as EADDRINUSE
2 participants