1'use strict' 2module.exports = function (dir, er) { 3 if (!er) return 4 var accessEr = new Error("EACCES, access '" + dir + "'", -13) 5 accessEr.code = 'EACCES' 6 accessEr.path = dir 7 return accessEr 8} 9