@@ -41,7 +41,7 @@ public struct ClientImage: Sendable {
4141 /// Returns the underlying OCI index for the image.
4242 public func index( ) async throws -> Index {
4343 guard let content: Content = try await contentStore. get ( digest: description. digest) else {
44- throw ContainerizationError ( . notFound, message: " Content with digest \( description. digest) " )
44+ throw ContainerizationError ( . notFound, message: " content with digest \( description. digest) " )
4545 }
4646 return try content. decode ( )
4747 }
@@ -53,10 +53,10 @@ public struct ClientImage: Sendable {
5353 desc. platform == platform
5454 }
5555 guard let desc else {
56- throw ContainerizationError ( . unsupported, message: " Platform \( platform. description) " )
56+ throw ContainerizationError ( . unsupported, message: " platform \( platform. description) " )
5757 }
5858 guard let content: Content = try await contentStore. get ( digest: desc. digest) else {
59- throw ContainerizationError ( . notFound, message: " Content with digest \( desc. digest) " )
59+ throw ContainerizationError ( . notFound, message: " content with digest \( desc. digest) " )
6060 }
6161 return try content. decode ( )
6262 }
@@ -66,7 +66,7 @@ public struct ClientImage: Sendable {
6666 let manifest = try await self . manifest ( for: platform)
6767 let desc = manifest. config
6868 guard let content: Content = try await contentStore. get ( digest: desc. digest) else {
69- throw ContainerizationError ( . notFound, message: " Content with digest \( desc. digest) " )
69+ throw ContainerizationError ( . notFound, message: " content with digest \( desc. digest) " )
7070 }
7171 return try content. decode ( )
7272 }
@@ -83,7 +83,7 @@ public struct ClientImage: Sendable {
8383 guard let manifest = index. manifests. first else {
8484 throw ContainerizationError (
8585 . internalError,
86- message: " Failed to resolve indirect index \( self . digest) : no manifests found "
86+ message: " failed to resolve indirect index \( self . digest) : no manifests found "
8787 )
8888 }
8989 return manifest
@@ -188,7 +188,7 @@ extension ClientImage {
188188 public static func get( reference: String ) async throws -> ClientImage {
189189 let all = try await self . list ( )
190190 guard let found = try self . _search ( reference: reference, in: all) else {
191- throw ContainerizationError ( . notFound, message: " Image with reference \( reference) " )
191+ throw ContainerizationError ( . notFound, message: " image with reference \( reference) " )
192192 }
193193 return found
194194 }
@@ -226,7 +226,7 @@ extension ClientImage {
226226
227227 let reference = try self . normalizeReference ( reference)
228228 guard let host = try Reference . parse ( reference) . domain else {
229- throw ContainerizationError ( . invalidArgument, message: " Could not extract host from reference \( reference) " )
229+ throw ContainerizationError ( . invalidArgument, message: " could not extract host from reference \( reference) " )
230230 }
231231
232232 request. set ( key: . imageReference, value: reference)
@@ -320,7 +320,7 @@ extension ClientImage {
320320 let request = Self . newRequest ( . imagePush)
321321
322322 guard let host = try Reference . parse ( reference) . domain else {
323- throw ContainerizationError ( . invalidArgument, message: " Could not extract host from reference \( reference) " )
323+ throw ContainerizationError ( . invalidArgument, message: " could not extract host from reference \( reference) " )
324324 }
325325 request. set ( key: . imageReference, value: reference)
326326
0 commit comments