Skip to content

Better error handling for unexpected failures #5959

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

Closed
1 task
nolessafool opened this issue Aug 22, 2023 · 1 comment
Closed
1 task

Better error handling for unexpected failures #5959

nolessafool opened this issue Aug 22, 2023 · 1 comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@nolessafool
Copy link
Contributor

Which problem is this feature request solving?

In situations such as the one handled in this slack thread netlify-only internal link, we had a lack of good visibility into failure causes in the situation where:

  • the CLI exits before it really gets started (so DEBUG=* doesn't really say much that is useful)
  • which was in this case caused by an unexpected signal 2/130 being received.

Describe the solution you'd like

It would be great if there were some better error handling during startup - in this case maybe even argument-parsing before it did any real work? Perhaps an explicit error handler for unexpected signals that aren't completely immediate (not sure what we can do about SIGSEGV for instance, but SIGINT is something that can be "caught" as far as I know) to show a stack trace or some other helpful debugging details? I'd guess we want it in a special flag but I'll leave those details to the experts who might build it.

Pull request (optional)

  • I can submit a pull request.
@nolessafool nolessafool added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Aug 22, 2023
@nolessafool
Copy link
Contributor Author

cc @estephinson who worked on this situation

@serhalp serhalp closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

2 participants