if (dirp == NULL)
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("opendir")
- << boost::errinfo_errno(errno));
+ << boost::errinfo_errno(errno)
+ << boost::errinfo_file_name(path));
while (dirp) {
dirent ent, *pent;
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("readdir_r")
- << boost::errinfo_errno(errno));
+ << boost::errinfo_errno(errno)
+ << boost::errinfo_file_name(path));
}
if (!pent)
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("lstat")
- << boost::errinfo_errno(errno));
+ << boost::errinfo_errno(errno)
+ << boost::errinfo_file_name(cpath));
}
if (S_ISDIR(statbuf.st_mode))
BOOST_THROW_EXCEPTION(posix_error()
<< boost::errinfo_api_function("stat")
- << boost::errinfo_errno(errno));
+ << boost::errinfo_errno(errno)
+ << boost::errinfo_file_name(cpath));
}
if (!S_ISDIR(statbuf.st_mode) && !S_ISREG(statbuf.st_mode))