MCPcopy
hub / github.com/perkeep/perkeep / Error

Method Error

internal/azure/storage/client.go:389–394  ·  view source on GitHub ↗

Error returns a formatted error message

()

Source from the content-addressed store, hash-verified

387
388// Error returns a formatted error message
389func (e *Error) Error() string {
390 if e.AzureError.Code != "" {
391 return fmt.Sprintf("azure.%s: status %d, code: %s", e.Op, e.Code, e.AzureError.Code)
392 }
393 return fmt.Sprintf("azure.%s: status %d", e.Op, e.Code)
394}
395
396func (e *Error) parseXML() {
397 _ = xml.NewDecoder(bytes.NewReader(e.Body)).Decode(&e.AzureError)

Callers 11

TestSignRequestFunction · 0.45
TestParseContainersFunction · 0.45
TestHostPortFunction · 0.45
TestHTTPAuthFunction · 0.45
TestParseFreeBSDSockstatFunction · 0.45
TestParseLinuxTCPStat4Function · 0.45
testLeakFunction · 0.45
TestCamPkConfigMigrationFunction · 0.45
TestStorageFunction · 0.45
TestMakeThumbnailFailureFunction · 0.45
serveRefFunction · 0.45

Calls

no outgoing calls

Tested by 10

TestSignRequestFunction · 0.36
TestParseContainersFunction · 0.36
TestHostPortFunction · 0.36
TestHTTPAuthFunction · 0.36
TestParseFreeBSDSockstatFunction · 0.36
TestParseLinuxTCPStat4Function · 0.36
testLeakFunction · 0.36
TestCamPkConfigMigrationFunction · 0.36
TestStorageFunction · 0.36
TestMakeThumbnailFailureFunction · 0.36