MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / extractError

Function extractError

daemon/algod/api/client/restClient.go:120–147  ·  view source on GitHub ↗

extractError checks if the response signifies an error (for now, StatusCode != 200 or StatusCode != 201). If so, it returns the error. Otherwise, it returns nil.

(resp *http.Response)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

submitFormMethod · 0.85
doGetWithQueryMethod · 0.85

Calls 4

filterASCIIFunction · 0.70
UnmarshalMethod · 0.65
GetMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected