Skip to content

Commit 0a22100

Browse files
committed
Fixup StackedSearchPathLookupError error message
The target file that could not be found was printing `Path(_str: "libclang.so")` instead of `libclang.so`. Add the `.str` to the `Path` so just the filename is printed.
1 parent 7de536c commit 0a22100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SWBCore/Settings/StackedSearchPaths.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ extension StackedSearchPathLookupError: CustomStringConvertible {
104104
switch self {
105105
case let .unableToFind(subject, operatingSystem, searchPaths):
106106
let candidates = searchPaths.flatMap { $0.paths.map { $0.join(subject.fileName(operatingSystem: operatingSystem)).str }}
107-
return "unable to find \(subject.fileName(operatingSystem: operatingSystem)) among search paths: \(candidates.joined(separator: ", "))"
107+
return "unable to find \(subject.fileName(operatingSystem: operatingSystem).str) among search paths: \(candidates.joined(separator: ", "))"
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)