Skip to content

Commit

Permalink
still generate output on error
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeberlein committed Jul 26, 2018
1 parent bb6d8b3 commit d9af2ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Vensim/VensimParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ bool VensimParse::ProcessFile(const std::string &filename)
std::cout << e.str << std::endl ;
std::cout << "Error at line " << mVensimLex.LineNumber() << " position " << mVensimLex.Position()
<< " in file " << sFilename << std::endl ;
std::cout << ".... skipping the associated variable and looking for the next usable content.";
pSymbolNameSpace->DeleteAllUnconfirmedAllocations() ;
noerr = false ;
if(!FindNextEq(false))
Expand Down Expand Up @@ -264,7 +265,7 @@ bool VensimParse::ProcessFile(const std::string &filename)
rval = 0;
}
mfSource.close() ;
return noerr ;
return true ; // got something - try to put something out
}
else
return false ;
Expand Down

0 comments on commit d9af2ff

Please sign in to comment.