diff options
author | Bart Vanhauwaert <bart@grafitroniks.fr> | 2010-08-02 13:49:03 +0200 |
---|---|---|
committer | Bart Vanhauwaert <bart@grafitroniks.fr> | 2010-08-02 13:49:03 +0200 |
commit | 346477f70d4f80b2811ad362db5ce4fbe192aed4 (patch) | |
tree | 526a38e780b80af5f0b08d7f5c10d3a414ae2f62 | |
parent | Find newer mingw compilers which report being mingw differently (diff) | |
download | bldit-346477f70d4f80b2811ad362db5ce4fbe192aed4.tar.xz bldit-346477f70d4f80b2811ad362db5ce4fbe192aed4.zip |
Recapitulate the number of errors during parsing
-rw-r--r-- | ProjectParser.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ProjectParser.cc b/ProjectParser.cc index a57bf60..b2b2dcf 100644 --- a/ProjectParser.cc +++ b/ProjectParser.cc @@ -589,7 +589,11 @@ ProjectParser::ProjectParser(Project& theProject, const std::string& Filename, b Input.whiteSpace(); } Global->print(""); - if (Input.errors()) return; + if (Input.errors()) + { + std::cerr << Input.errors() << " error(s) detected" << std::endl; + return; + } Context theContent(theProject,Input); Global->execute(theContent); } |