* @brief Return an invalid argument error to the caller. *************************************************************/
| 490 | * @brief Return an invalid argument error to the caller. |
| 491 | *************************************************************/ |
| 492 | bool KernelSML::InvalidArg(Connection* pConnection, soarxml::ElementXML* pResponse, char const* pCommandName, char const* pErrorDescription) |
| 493 | { |
| 494 | std::stringstream msg; |
| 495 | msg << "Invalid arguments for command : " << pCommandName << pErrorDescription ; |
| 496 | |
| 497 | AddErrorMsg(pConnection, pResponse, msg.str().c_str()) ; |
| 498 | |
| 499 | // Return true because we've already added the error message. |
| 500 | return true ; |
| 501 | } |
| 502 | |
| 503 | /************************************************************* |
| 504 | * @brief Look up an agent from its name. |
nothing calls this directly
no test coverage detected