Skip to content

Expose the errors module from the internal directory #34348

Closed
@szmarczak

Description

@szmarczak

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.

Activity

joaolucasl

joaolucasl commented on Aug 23, 2020

@joaolucasl
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

github-actions commented on Mar 18, 2022

@github-actions
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

github-actions commented on Apr 18, 2022

@github-actions
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @bnoordhuis@joaolucasl@szmarczak

      Issue actions

        Expose the `errors` module from the `internal` directory · Issue #34348 · nodejs/node