MCPcopy Create free account
hub / github.com/apache/trafficserver / concat_error

Function concat_error

src/proxy/http/remap/PluginDso.cc:49–57  ·  view source on GitHub ↗

concat_error joins msg to the given error string, separating it from an existing error with a colon.

Source from the content-addressed store, hash-verified

47// concat_error joins msg to the given error string, separating it from
48// an existing error with a colon.
49void
50concat_error(std::string &error, const std::string &msg)
51{
52 if (error.empty()) {
53 error.assign(msg);
54 } else {
55 error.append(": ").append(msg);
56 }
57}
58
59} // namespace
60

Callers 3

loadMethod · 0.85
unloadMethod · 0.85
cleanMethod · 0.85

Calls 3

emptyMethod · 0.45
assignMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected