Skip to content

Commit

Permalink
Don't throw an error when a source file does not exist, closes #858
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Dec 28, 2024
1 parent 03d889c commit 03cc8b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

##### Bug Fixes

- None.
- A clean build is no longer required when a file is deleted from the scanned project.

## 3.0.0 (2024-12-27)

Expand Down
3 changes: 2 additions & 1 deletion Sources/Indexer/SourceFileCollector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public struct SourceFileCollector {

if !isExcluded(file) {
guard file.exists else {
throw PeripheryError.pathDoesNotExist(path: file.string)
logger.debug("Source file does not exist: \(file.string)")
return nil
}

let module = try indexStore.moduleName(for: unit)
Expand Down

0 comments on commit 03cc8b4

Please sign in to comment.