Skip to content
Snippets Groups Projects
Commit 2bd79625 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Slightly better error reporting in parser

parent fc260ac4
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,10 @@ std::string Action::getDocumentation()const{ ...@@ -79,7 +79,10 @@ std::string Action::getDocumentation()const{
void Action::checkRead(){ void Action::checkRead(){
if(line.size()>0){ if(line.size()>0){
log.printf("ERROR READING INPUT FILE\n%s\n",getDocumentation().c_str()); log.printf("ERROR READING INPUT FILE\n");
log.printf("I CANNOT UNDERSTAND THE FOLLOWING WORDS:\n");
for(unsigned i=0;i<line.size();i++) log.printf(" %s\n",line[i].c_str());
log.printf("STOP!!\n");
exit(1); exit(1);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment