MCPcopy Create free account
hub / github.com/comaps/comaps / DebugPrint

Function DebugPrint

libs/platform/http_request.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace non_http_error_code
30{
31string DebugPrint(long errorCode)
32{
33 switch (errorCode)
34 {
35 case kIOException: return "IO exception";
36 case kWriteException: return "Write exception";
37 case kInconsistentFileSize: return "Inconsistent file size";
38 case kNonHttpResponse: return "Non-http response";
39 case kInvalidURL: return "Invalid URL";
40 case kCancelled: return "Cancelled";
41 default: return std::to_string(errorCode);
42 }
43}
44} // namespace non_http_error_code
45
46/// @return 0 if creation failed

Callers 2

OnFinishMethod · 0.70
OnFinishMethod · 0.70

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected