MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / SendErrorResponse

Method SendErrorResponse

source/Debugger.cpp:2058–2071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2056}
2057
2058int Debugger::SendErrorResponse(char *aCommandName, char *aTransactionId, int aError, char *aExtraAttributes)
2059{
2060 mResponseBuf.WriteF("<response command=\"%s\" transaction_id=\"%e"
2061 , aCommandName, aTransactionId);
2062
2063 if (aExtraAttributes)
2064 mResponseBuf.WriteF("\" %s>", aExtraAttributes);
2065 else
2066 mResponseBuf.Write("\">");
2067
2068 mResponseBuf.WriteF("<error code=\"%i\"/></response>", aError);
2069
2070 return SendResponse();
2071}
2072
2073int Debugger::SendStandardResponse(char *aCommandName, char *aTransactionId)
2074{

Callers

nothing calls this directly

Calls 2

WriteFMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected