Skip to content

Commit c04ac9c

Browse files
committed
Swift: demote wrong assertion
1 parent 55f23ff commit c04ac9c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

swift/extractor/SwiftExtractor.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ static void archiveFile(const SwiftExtractorConfiguration& config, swift::Source
4141

4242
std::error_code ec;
4343
fs::copy(source, destination, fs::copy_options::overwrite_existing, ec);
44-
CODEQL_ASSERT(!ec, "Cannot archive source file {} -> {} ({})", source, destination, ec);
44+
if (!ec) {
45+
LOG_INFO(
46+
"Cannot archive source file {} -> {}, probably a harmless race with another process ({})",
47+
source, destination, ec);
48+
}
4549
}
4650

4751
static fs::path getFilename(swift::ModuleDecl& module,

0 commit comments

Comments
 (0)