]> git.mdlowis.com Git - archive/parse-utils.git/commitdiff
Fixed a bug in btparser where an exception was being created but not actually thrown...
authorMike D. Lowis <mike@mdlowis.com>
Fri, 2 Mar 2012 15:44:23 +0000 (10:44 -0500)
committerMike D. Lowis <mike@mdlowis.com>
Fri, 2 Mar 2012 15:44:23 +0000 (10:44 -0500)
source/parser/btparser/btparser.cpp

index 9a01d439553c785c22c4aed08de722c27e66ebb3..8213468c7b71d715713ecfb142d45b59777f784b 100644 (file)
@@ -73,9 +73,10 @@ void BTParser::match(TokenType_T type)
     {
         Token& tok = lookaheadToken(1);
         ostringstream oss;
-        oss << "Expected token type. Expected " << type << ", received " << tok.type() << ".";
+        oss << "Unexpected token type. Expected " << type << ", received " << tok.type() << ".";
         Exception ex( tok.line(), tok.column() );
         ex.setMessage(oss.str());
+        throw ex;
     }
 }