From d9af2ff707064b814a4a878693ba1fe252143985 Mon Sep 17 00:00:00 2001 From: Bob Eberlein Date: Thu, 26 Jul 2018 08:39:50 -0400 Subject: [PATCH] still generate output on error --- src/Vensim/VensimParse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Vensim/VensimParse.cpp b/src/Vensim/VensimParse.cpp index 9b1d49f..9d9acc4 100644 --- a/src/Vensim/VensimParse.cpp +++ b/src/Vensim/VensimParse.cpp @@ -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)) @@ -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 ;