Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions swift/extractor/infra/file/TargetFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ bool TargetFile::init() {
checkOutput("open");
return true;
}
CODEQL_ASSERT(errno == EEXIST, "Unable to open {} for writing ({})", targetPath,
CODEQL_EXPECT(errno == EEXIST, "Unable to open {} for writing ({})", targetPath,
currentErrorCode());
// else the file already exists and we just lost the race
// else the file already exists and we just lost the race, or some error occurred
// and the file could not be created
return false;
}

Expand Down
Loading