Swift: demote wrong assertion

This commit is contained in:
Paolo Tranquilli
2023-04-24 09:57:51 +02:00
parent 55f23ffa6f
commit c04ac9c04e

View File

@@ -41,7 +41,11 @@ static void archiveFile(const SwiftExtractorConfiguration& config, swift::Source
std::error_code ec;
fs::copy(source, destination, fs::copy_options::overwrite_existing, ec);
CODEQL_ASSERT(!ec, "Cannot archive source file {} -> {} ({})", source, destination, ec);
if (!ec) {
LOG_INFO(
"Cannot archive source file {} -> {}, probably a harmless race with another process ({})",
source, destination, ec);
}
}
static fs::path getFilename(swift::ModuleDecl& module,