Skip to content

Expose the errors module from the internal directory #34348

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

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 requesting new Node.js features.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions