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

Function explicitGenerateErrString

cpp/core/RegistryClient.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include "Loop.hpp"
30
31static std::string explicitGenerateErrString(const std::string& what, int err, const char* str) {
32 std::stringstream ss;
33 ss << "could not " << what << ": " << err << "/" << str;
34 return ss.str();
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());

Callers 1

generateErrStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected