Fix #12002 (Filelister: Unclear error 'finding files failed (error: 3)') (#5460)

This commit is contained in:
Daniel Marjamäki 2023-09-19 15:36:34 +02:00 committed by GitHub
parent c6b3c56174
commit 3089fc393b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ std::string FileLister::addFiles(std::map<std::string, std::size_t> &files, cons
// no files matched // no files matched
return ""; return "";
} }
return "finding files failed (error: " + std::to_string(err) + ")"; return "finding files failed. Search pattern: '" + searchPattern + "'. (error: " + std::to_string(err) + ")";
} }
std::unique_ptr<void, decltype(&FindClose)> hFind_deleter(hFind, FindClose); std::unique_ptr<void, decltype(&FindClose)> hFind_deleter(hFind, FindClose);