add err handler

fs.readdir err handler