From 873f2dddd635cb246af4368b9950123fb36d9b28 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 26 Jan 2017 13:52:02 +0100 Subject: Update error message. --- libsolidity/inlineasm/AsmParser.cpp | 2 +- test/libsolidity/InlineAssembly.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 7ddc6d04..fcc92dbb 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -72,7 +72,7 @@ assembly::Statement Parser::parseStatement() assignment.variableName.location = location(); assignment.variableName.name = m_scanner->currentLiteral(); if (instructions().count(assignment.variableName.name)) - fatalParserError("Identifier expected."); + fatalParserError("Identifier expected, got instruction name."); assignment.location.end = endPosition(); expectToken(Token::Identifier); return assignment; diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 33721bbf..c051a982 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_declaration) BOOST_AUTO_TEST_CASE(inline_assembly_shadowed_instruction_assignment) { - // Error message: "Cannot use instruction names for identifier names." + // Error message: "Identifier expected, got instruction name." BOOST_CHECK(!successAssemble("{ 2 =: gas }")); } -- cgit