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

Function explicitGenerateErrString

cpp/core/Connect.cpp:15–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include "Exception.hpp"
14
15static std::string explicitGenerateErrString(const std::string& what, int err, const char* str) {
16 std::stringstream ss;
17 ss << "could not " << what << ": " << err << "/" << str;
18 return ss.str();
19}
20
21static std::string generateErrString(const std::string& what, int err) {
22 return explicitGenerateErrString(what, err, (std::string(translateErrno(err)) + "=" + safe_strerror(err)).c_str());

Callers 2

generateErrStringFunction · 0.70
connectToHostFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected