summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Vanhauwaert <bart@grafitroniks.fr>2010-08-02 13:49:03 +0200
committerBart Vanhauwaert <bart@grafitroniks.fr>2010-08-02 13:49:03 +0200
commit346477f70d4f80b2811ad362db5ce4fbe192aed4 (patch)
tree526a38e780b80af5f0b08d7f5c10d3a414ae2f62
parentFind newer mingw compilers which report being mingw differently (diff)
downloadbldit-346477f70d4f80b2811ad362db5ce4fbe192aed4.tar.xz
bldit-346477f70d4f80b2811ad362db5ce4fbe192aed4.zip
Recapitulate the number of errors during parsing
-rw-r--r--ProjectParser.cc6
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);
}