|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51404 - trunk/tools/quickbook/detail
From: daniel_james_at_[hidden]
Date: 2009-02-22 18:49:06
Author: danieljames
Date: 2009-02-22 18:49:05 EST (Sun, 22 Feb 2009)
New Revision: 51404
URL: http://svn.boost.org/trac/boost/changeset/51404
Log:
Write out error count on failure. Looks a bit odd at the moment but
it'll do. Fixes #1214.
Text files modified:
trunk/tools/quickbook/detail/quickbook.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
Modified: trunk/tools/quickbook/detail/quickbook.cpp
==============================================================================
--- trunk/tools/quickbook/detail/quickbook.cpp (original)
+++ trunk/tools/quickbook/detail/quickbook.cpp 2009-02-22 18:49:05 EST (Sun, 22 Feb 2009)
@@ -88,6 +88,12 @@
<< "Syntax Error near column " << pos.column << ".\n";
++actor.error_count;
}
+
+ if(actor.error_count)
+ {
+ detail::outerr(filein_, -1)
+ << "Error count: " << actor.error_count << ".\n";
+ }
return actor.error_count ? 1 : 0;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk