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

Display Process Uncaught Exceptions #86

Open
BenBaryoPX opened this issue Sep 4, 2023 · 0 comments
Open

Display Process Uncaught Exceptions #86

BenBaryoPX opened this issue Sep 4, 2023 · 0 comments
Labels
Feature Request New feature or request good first issue Good for newcomers

Comments

@BenBaryoPX
Copy link
Collaborator

@lanvent writes (#85)

The following code snippet in the library:

  // Silence asyc errors
  process.on('uncaughtException', () => {});

While I understand that the intent is to silence asynchronous errors, this also suppresses all exceptions. It made debugging a bit challenging for me as I am not deeply familiar with JavaScript. It might be helpful to add an option or warning for this behavior and some guidance on error logging.

I suggest keeping this behavior as default, and adding an option to disable the error suppression (perhaps using process.removeListener).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant