mirror of
https://github.com/cirruslabs/tart.git
synced 2026-09-30 03:01:12 +02:00
Registry: log upload location when encountering blob pushing error (#121)
This commit is contained in:
@@ -184,8 +184,8 @@ class Registry {
|
|||||||
body: fromData)
|
body: fromData)
|
||||||
if putResponse.status != .created {
|
if putResponse.status != .created {
|
||||||
let body = try await postResponse.body.readTextResponse()
|
let body = try await postResponse.body.readTextResponse()
|
||||||
throw RegistryError.UnexpectedHTTPStatusCode(when: "pushing blob (PUT)", code: putResponse.status.code,
|
throw RegistryError.UnexpectedHTTPStatusCode(when: "pushing blob (PUT) to \(uploadLocation)",
|
||||||
details: body ?? "")
|
code: putResponse.status.code, details: body ?? "")
|
||||||
}
|
}
|
||||||
|
|
||||||
return digest
|
return digest
|
||||||
|
|||||||
Reference in New Issue
Block a user