Nuke some error prints.

develop
Petr Mrázek 2012-06-23 00:25:30 +02:00
parent 2781723f7b
commit 6199d6915c
2 changed files with 1 additions and 10 deletions

@ -281,29 +281,20 @@ static command_result runLuaScript(color_ostream &out, std::string filename, vec
command_result Core::runCommand(color_ostream &out, const std::string &command)
{
fprintf(stderr,"Inside runCommand");
fprintf(stderr," with command %s\n",command.c_str());
if (!command.empty())
{
fprintf(stderr,"Command is not empty, tokenizing\n");
vector <string> parts;
Core::cheap_tokenise(command,parts);
fprintf(stderr,"Tokenized, got %d parts\n",parts.size());
if(parts.size() == 0)
return CR_NOT_IMPLEMENTED;
string first = parts[0];
fprintf(stderr,"Erasing beginning\n");
parts.erase(parts.begin());
fprintf(stderr,"I think we're about there\n");
if (first[0] == '#')
return CR_OK;
cerr << "Invoking: " << command << endl;
fprintf(stderr,"Returning with the next recursion\n");
return runCommand(out, first, parts);
}
else

@ -1 +1 @@
Subproject commit c381884664c71adefbec44258a734def2c88dacc
Subproject commit ad38c5e96b05fedf16114fd16bd463e933f13582