MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / parseError

Method parseError

internal/cli/client.go:1752–1755  ·  view source on GitHub ↗
(resp *http.Response)

Source from the content-addressed store, hash-verified

1750}
1751
1752func (c *Client) parseError(resp *http.Response) error {
1753 body, _ := io.ReadAll(resp.Body)
1754 return parseErrorBody(resp.StatusCode, body)
1755}
1756
1757// parseErrorBody decodes an error response whose body has already been
1758// read. Split out of parseError so callers that need the raw bytes for

Callers 7

ExportItemArtifactMethod · 0.95
RawGetMethod · 0.95
RawStreamMethod · 0.95
DownloadAttachmentMethod · 0.95
HeadAttachmentMethod · 0.95
deleteMethod · 0.95
handleResponseMethod · 0.95

Calls 1

parseErrorBodyFunction · 0.85

Tested by

no test coverage detected