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

Expose the errors module from the internal directory #34348

Closed
szmarczak opened this issue Jul 14, 2020 · 3 comments
Closed

Expose the errors module from the internal directory #34348

szmarczak opened this issue Jul 14, 2020 · 3 comments
Labels
feature request Issues that request new features to be added to Node.js. stale

Comments

@szmarczak
Copy link
Member

Is your feature request related to a problem? Please describe.

#14570 (comment)

Describe the solution you'd like

Expose the errors module so it can be imported e.g. const errors = require('errors');

That way we could easily throw Node.js errors without duplicating them like this.

Describe alternatives you've considered

No, duplicates increase the package size.

@bnoordhuis bnoordhuis added the feature request Issues that request new features to be added to Node.js. label Jul 14, 2020
@joaolucasl
Copy link
Contributor

Probably would be nice to bring some of the history behind #11220 and the reasoning behind the creation of internal/error to contribute to this discussion

@github-actions
Copy link
Contributor

There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.

For more information on how the project manages feature requests, please consult the feature request management document.

@github-actions
Copy link
Contributor

There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

For more information on how the project manages feature requests, please consult the feature request management document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. stale
Projects
None yet
Development

No branches or pull requests

3 participants