diff --git a/source/views/view_pattern.cpp b/source/views/view_pattern.cpp index 08a4bda7d..2dc7cc14e 100644 --- a/source/views/view_pattern.cpp +++ b/source/views/view_pattern.cpp @@ -107,7 +107,8 @@ namespace hex { preprocessor.addDefaultPragramHandlers(); - for (auto &entry : std::filesystem::directory_iterator("patterns")) { + std::error_code errorCode; + for (auto &entry : std::filesystem::directory_iterator("patterns", errorCode)) { if (!entry.is_regular_file()) continue;