|
@@ -315,18 +315,23 @@ ModuleCCSession::checkCommand() {
|
|
|
if (target_module == module_name_) {
|
|
|
if (command_handler_) {
|
|
|
ElementPtr errors = Element::createList();
|
|
|
- if (module_specification_.validate_command(cmd_str, arg, errors)) {
|
|
|
+ if (module_specification_.validate_command(cmd_str,
|
|
|
+ arg,
|
|
|
+ errors)) {
|
|
|
answer = command_handler_(cmd_str, arg);
|
|
|
} else {
|
|
|
std::stringstream ss;
|
|
|
ss << "Error in command validation: ";
|
|
|
- BOOST_FOREACH(ConstElementPtr error, errors->listValue()) {
|
|
|
+ BOOST_FOREACH(ConstElementPtr error,
|
|
|
+ errors->listValue()) {
|
|
|
ss << error->stringValue();
|
|
|
}
|
|
|
answer = createAnswer(3, ss.str());
|
|
|
}
|
|
|
} else {
|
|
|
- answer = createAnswer(1, "Command given but no command handler for module");
|
|
|
+ answer = createAnswer(1,
|
|
|
+ "Command given but no "
|
|
|
+ "command handler for module");
|
|
|
}
|
|
|
}
|
|
|
}
|