fix(parser): error for unexpected token

This commit is contained in:
Alexey Shekhirin
2022-04-29 16:13:04 +04:00
parent d55b84ff63
commit cb24e5d545
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ ASTPointer<SourceUnit> Parser::parse(CharStream& _charStream)
expectToken(Token::Semicolon);
}
else
fatalParserError(7858_error, "Expected pragma, import directive or contract/interface/library/struct/enum/constant/function definition.");
fatalParserError(7858_error, "Expected pragma, import directive or contract/interface/library/struct/enum/constant/function/error definition.");
}
}
solAssert(m_recursionDepth == 0, "");