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

feat: port in use #6887

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: port in use #6887

wants to merge 2 commits into from

Conversation

wconrad265
Copy link

🎉 Thanks for submitting a pull request! 🎉

Summary

This pull request addresses these issues found below

We (@tlane25) outline the problem in the comments in #6840.

This pull request adds better error handling for users who open a port for a serverless function.


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

wconrad265 and others added 2 commits October 18, 2024 15:30
nforms the user that this could be from a netlify function opening ports

Co-authored-by: Thomas Lane <tlane25@users.noreply.github.com>
Co-authored-by: Thomas Lane <163203257+tlane25@users.noreply.github.com>
@wconrad265 wconrad265 changed the title Port in use feat: port in use Oct 18, 2024
@wconrad265 wconrad265 marked this pull request as ready for review October 18, 2024 20:48
@wconrad265 wconrad265 requested a review from a team as a code owner October 18, 2024 20:48
Copy link
Contributor

@DanielSLew DanielSLew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a small nit about any types.

@@ -40,27 +40,39 @@ import { createWatchCommand } from './watch/index.js'

const SUGGESTION_TIMEOUT = 1e4

process.on('uncaughtException', async (err) => {
process.on('uncaughtException', async (err: any) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use a proper type here rather than adding in an any

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.

2 participants