mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-31 09:50:26 +00:00
Hide error messages when scanning a directory and file open fails
This commit is contained in:
parent
7b052d887d
commit
cf8b95809f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user