diff options
Diffstat (limited to 'Swiften/Examples/ParserTester/ParserTester.cpp')
-rw-r--r-- | Swiften/Examples/ParserTester/ParserTester.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Swiften/Examples/ParserTester/ParserTester.cpp b/Swiften/Examples/ParserTester/ParserTester.cpp index 3cc87e1..61c0eae 100644 --- a/Swiften/Examples/ParserTester/ParserTester.cpp +++ b/Swiften/Examples/ParserTester/ParserTester.cpp @@ -44,7 +44,10 @@ int main(int argc, char* argv[]) { while (!myfile.eof()) { getline (myfile,line); std::cout << "Parsing: " << line << std::endl; - tester.parse(line); + if (!tester.parse(line)) { + std::cerr << "PARSE ERROR" << std::endl; + return -1; + } } myfile.close(); } |