Skip to content

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

Merged
small-angel merged 4 commits into
oven-sh:mainfrom
liz3:liz3/add-eaccs-error
Nov 19, 2023
Merged

small-angel merged 4 commits into
oven-sh:mainfrom
liz3:liz3/add-eaccs-error

Conversation

@liz3

@liz3 liz3 commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

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
Comment thread src/bun.js/api/server.zig Resolved
@small-angel

Copy link
Copy Markdown
Contributor

nice

@liz3

liz3 commented Nov 17, 2023

Copy link
Copy Markdown
Contributor Author

@Paperdave should be gud now

@small-angel
small-angel merged commit 778bad9 into oven-sh:main Nov 19, 2023
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