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.

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

    Issue actions