mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
Improve error message on unexpected end of file
Suggested-by: Stephen Kelly <steveire@gmail.com>
This commit is contained in:
@@ -163,8 +163,7 @@ bool cmListFileParser::ParseFunction(const char* name, long line)
|
||||
if (!token) {
|
||||
std::ostringstream error;
|
||||
/* clang-format off */
|
||||
error << "Error in cmake code at\n" << this->FileName << ":"
|
||||
<< cmListFileLexer_GetCurrentLine(this->Lexer) << ":\n"
|
||||
error << "Unexpected end of file.\n"
|
||||
<< "Parse error. Function missing opening \"(\".";
|
||||
/* clang-format on */
|
||||
this->IssueError(error.str());
|
||||
|
||||
Reference in New Issue
Block a user