Skip to content

Commit 3963ee0

Browse files
committed
Merge branch 'main' into sendable-property
# Conflicts: # Package.resolved # Package.swift
2 parents 02805d6 + f0d82d2 commit 3963ee0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/Services/ContainerImagesService/Server/ImageService.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ extension ImagesService {
166166
return try await body(authentication)
167167
}
168168
let keychain = KeychainHelper(id: Self.keychainID)
169-
authentication = try? keychain.lookup(domain: host)
169+
do {
170+
authentication = try keychain.lookup(domain: host)
171+
} catch let err as KeychainHelper.Error {
172+
guard case .keyNotFound = err else {
173+
throw ContainerizationError(.internalError, message: "Error querying keychain for \(host)", cause: err)
174+
}
175+
}
170176
do {
171177
return try await body(authentication)
172178
} catch let err as RegistryClient.Error {

0 commit comments

Comments
 (0)