From cf8b95809ff9641da078ea7ca41e61d062c48c2d Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Fri, 28 Jul 2017 17:07:50 -0700 Subject: [PATCH] Hide error messages when scanning a directory and file open fails --- src/utils.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.cc b/src/utils.cc index 106fb179..71570df1 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -107,14 +107,14 @@ static void GetFilesInFolderHelper( std::string folder, bool recursive, std::string output_prefix, const std::function& 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; }