We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 02805d6 + f0d82d2 commit 3963ee0Copy full SHA for 3963ee0
Sources/Services/ContainerImagesService/Server/ImageService.swift
@@ -166,7 +166,13 @@ extension ImagesService {
166
return try await body(authentication)
167
}
168
let keychain = KeychainHelper(id: Self.keychainID)
169
- authentication = try? keychain.lookup(domain: host)
+ 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
176
do {
177
178
} catch let err as RegistryClient.Error {
0 commit comments