mirror of
https://github.com/MaskRay/ccls.git
synced 2025-03-30 13:32:13 +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) {
|
std::string folder, bool recursive, std::string output_prefix, const std::function<void(const std::string&)>& handler) {
|
||||||
tinydir_dir dir;
|
tinydir_dir dir;
|
||||||
if (tinydir_open(&dir, folder.c_str()) == -1) {
|
if (tinydir_open(&dir, folder.c_str()) == -1) {
|
||||||
perror("Error opening file");
|
//perror("Error opening file");
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (dir.has_next) {
|
while (dir.has_next) {
|
||||||
tinydir_file file;
|
tinydir_file file;
|
||||||
if (tinydir_readfile(&dir, &file) == -1) {
|
if (tinydir_readfile(&dir, &file) == -1) {
|
||||||
perror("Error getting file");
|
//perror("Error getting file");
|
||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user