| 2056 | } |
| 2057 | |
| 2058 | int 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 | |
| 2073 | int Debugger::SendStandardResponse(char *aCommandName, char *aTransactionId) |
| 2074 | { |