Hide error messages when scanning a directory and file open fails

This commit is contained in:
Jacob Dufault 2017-07-28 17:07:50 -07:00
parent 7b052d887d
commit cf8b95809f

View File

@ -107,14 +107,14 @@ static void GetFilesInFolderHelper(
std::string folder, bool recursive, std::string output_prefix, const std::function<void(const std::string&)>& handler) {
tinydir_dir dir;
if (tinydir_open(&dir, folder.c_str()) == -1) {
perror("Error opening file");
//perror("Error opening file");
goto bail;
}
while (dir.has_next) {
tinydir_file file;
if (tinydir_readfile(&dir, &file) == -1) {
perror("Error getting file");
//perror("Error getting file");
goto bail;
}