MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / generateErrString

Function generateErrString

cpp/core/RegistryClient.cpp:37–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static std::string generateErrString(const std::string& what, int err) {
38 return explicitGenerateErrString(what, err, (std::string(translateErrno(err)) + "=" + safe_strerror(err)).c_str());
39}
40
41static std::pair<Sock, std::string> registrySock(const std::string& host, uint16_t port, Duration timeout) {
42 auto [sock, err] = connectToHost(host, port, timeout);

Callers

nothing calls this directly

Calls 3

translateErrnoFunction · 0.85
safe_strerrorFunction · 0.85

Tested by

no test coverage detected