|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52120 - trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser
From: jamin.hanson_at_[hidden]
Date: 2009-04-01 16:34:21
Author: ben_hanson
Date: 2009-04-01 16:34:20 EDT (Wed, 01 Apr 2009)
New Revision: 52120
URL: http://svn.boost.org/trac/boost/changeset/52120
Log:
Fixes to some exception messages.
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp | 2 +-
trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser.hpp 2009-04-01 16:34:20 EDT (Wed, 01 Apr 2009)
@@ -270,7 +270,7 @@
{
std::ostringstream ss_;
- ss_ << "Unknown option at " <<
+ ss_ << "Unknown option at index " <<
state_.index () - 1 << '.';
throw runtime_error (ss_.str ().c_str ());
}
Modified: trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/parser/tokeniser/re_tokeniser_helper.hpp 2009-04-01 16:34:20 EDT (Wed, 01 Apr 2009)
@@ -103,7 +103,7 @@
std::ostringstream ss_;
ss_ << "Mismatch in charset negation preceding "
- "index " << state_.index () - 1 << '.';
+ "index " << state_.index () << '.';
throw runtime_error (ss_.str ().c_str ());
}
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