Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Errorcode EEXIST wrong on mkdir and mkdirSync (47 instead of 17) #2211

@mauritslamers

Description

@mauritslamers

When trying to create a new directory with either mkdir or mkdirSync, and the directory already exists, the error object thrown has an inconsistency:

{ [Error: EEXIST, file already exists 'build'] errno: 47, code: 'EEXIST', path: 'build', syscall: 'mkdir' }

The issue is that the errno is wrong, as 47 is the error for EAFNOSUPPORT.
The constants give 17 for EEXIST.

Tested on MacOSX and Centos (tanepiper). (node versions 0.6.1 and 0.6.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions