Skip to content

Commit f461e71

Browse files
committed
Swift: fix wrong condition for log
1 parent 1ed5f6a commit f461e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/extractor/SwiftExtractor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ 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-
if (!ec) {
44+
if (ec) {
4545
LOG_INFO(
4646
"Cannot archive source file {} -> {}, probably a harmless race with another process ({})",
4747
source, destination, ec);

0 commit comments

Comments
 (0)