Skip to content

Can throw ENOTDIR instead of MODULE_NOT_FOUND #121

@loganfsmyth

Description

@loganfsmyth
require('./CHANGELOG.md/directory');

will throw code MODULE_NOT_FOUND, but

require('resolve').sync('./CHANGELOG.md/directory')

will throw code ENOTDIR.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions