MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / GetErrorMessage

Method GetErrorMessage

src/render/plugins/net_ws/http_handler.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 std::string HttpHandler::GetErrorMessage(int code) {
26 if (code == kHandlerErrVerifySafetyPasswordFailed) {
27 return "Verify security password failed";
28 }
29 else if (code == kHandlerErrNoSafetyPasswordInRenderer) {
30 return "No security password in renderer";
31 }
32 else if (code == kHandlerErrNoRtcLocalPlugin) {
33 return "No RtcLocalPlugin";
34 }
35 else if (code == kHandlerErrCreateRtcLocalServerFailed) {
36 return "Create Rtc local server failed";
37 }
38 return BaseHandler::GetErrorMessage(code);
39 }
40
41 void HttpHandler::HandlePing(http::web_request &req, http::web_response &resp) {
42 auto data = WrapBasicInfo(200, "ok", std::string("Pong"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected