mirror of https://github.com/cirruslabs/tart.git
Registry: log upload location when encountering blob pushing error (#121)
This commit is contained in:
parent
022317bc17
commit
b16bbf587a
|
|
@ -184,8 +184,8 @@ class Registry {
|
|||
body: fromData)
|
||||
if putResponse.status != .created {
|
||||
let body = try await postResponse.body.readTextResponse()
|
||||
throw RegistryError.UnexpectedHTTPStatusCode(when: "pushing blob (PUT)", code: putResponse.status.code,
|
||||
details: body ?? "")
|
||||
throw RegistryError.UnexpectedHTTPStatusCode(when: "pushing blob (PUT) to \(uploadLocation)",
|
||||
code: putResponse.status.code, details: body ?? "")
|
||||
}
|
||||
|
||||
return digest
|
||||
|
|
|
|||
Loading…
Reference in New Issue