mirror of
https://github.com/nodejs/node.git
synced 2025-05-13 16:39:33 +00:00

PR-URL: https://github.com/nodejs/node/pull/3310 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
9 lines
202 B
JavaScript
9 lines
202 B
JavaScript
'use strict'
|
|
module.exports = function (dir, er) {
|
|
if (!er) return
|
|
var accessEr = new Error("EACCES, access '" + dir + "'", -13)
|
|
accessEr.code = 'EACCES'
|
|
accessEr.path = dir
|
|
return accessEr
|
|
}
|