aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/Parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/Parser.cpp')
-rw-r--r--libsolidity/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp
index ac9e04c8..1ea406be 100644
--- a/libsolidity/Parser.cpp
+++ b/libsolidity/Parser.cpp
@@ -627,9 +627,9 @@ ASTPointer<Statement> Parser::parseStatement()
ASTNodeFactory nodeFactory(*this);
ASTPointer<Expression> expression;
if (m_scanner->next() != Token::Semicolon)
- BOOST_THROW_EXCEPTION(createParserError("Throw statement cannot have parameters."));
+ BOOST_THROW_EXCEPTION(createParserError("Expected semicolon."));
- statement = nodeFactory.createNode<Throw>(/*expression*/);
+ statement = nodeFactory.createNode<Throw>();
break;
}
case Token::Identifier: