fixup! sim_fibo_ad*: print the log messages from the parser/EclipseState

This commit is contained in:
Andreas Lauser 2014-10-06 10:12:57 +02:00
parent 566c7c03d7
commit b4f9a49bd6
2 changed files with 4 additions and 4 deletions

View File

@ -113,12 +113,12 @@ try
eclipseState.reset(new EclipseState(deck, parserLog));
}
catch (const std::invalid_argument& e) {
std::cerr << "error while parsing the deck file: " << e.what() << "\n";
if (parserLog->size() > 0) {
std::cerr << "Issues found while parsing the deck file:\n";
parserLog->printAll(std::cerr);
}
return 1;
std::cerr << "error while parsing the deck file: " << e.what() << "\n";
return EXIT_FAILURE;
}
if (parserLog->size() > 0) {

View File

@ -139,12 +139,12 @@ try
eclipseState.reset(new EclipseState(deck, parserLog));
}
catch (const std::invalid_argument& e) {
std::cerr << "error while parsing the deck file: " << e.what() << "\n";
if (parserLog->size() > 0) {
std::cerr << "Issues found while parsing the deck file:\n";
parserLog->printAll(std::cerr);
}
return 1;
std::cerr << "error while parsing the deck file: " << e.what() << "\n";
return EXIT_FAILURE;
}
if (parserLog->size() > 0) {