MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / LogError

Function LogError

getting-started/index_gcs_prefix.cc:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67gcf::HttpResponse LogError(std::string const& msg) {
68 std::cerr << LogFormat("error", msg) << "\n";
69 return gcf::HttpResponse{}
70 .set_result(gcf::HttpResponse::kBadRequest)
71 .set_payload(msg);
72}
73
74} // namespace
75

Callers 1

IndexGcsPrefixFunction · 0.70

Calls 1

LogFormatFunction · 0.70

Tested by

no test coverage detected