diff options
author | Brad King <brad.king@kitware.com> | 2016-08-31 13:19:34 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-31 13:19:34 (GMT) |
commit | 5b1f9cd12703eca0505ee0b6d9d2a0e53ed86f67 (patch) | |
tree | 111087c59034f9f65bde0c3103ac5a2850da0a68 /Source | |
parent | 6f8b93983a3bfb4a9262cae8e9b989edb61e8a4b (diff) | |
parent | 1dda2ec55a07f2a51d09f7b1604707e690e884b5 (diff) | |
download | CMake-5b1f9cd12703eca0505ee0b6d9d2a0e53ed86f67.zip CMake-5b1f9cd12703eca0505ee0b6d9d2a0e53ed86f67.tar.gz CMake-5b1f9cd12703eca0505ee0b6d9d2a0e53ed86f67.tar.bz2 |
Merge topic 'syntax-unexpected-eof'
1dda2ec5 Improve error message on unexpected end of file
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmListFileCache.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index 3c5e333..aad538c 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -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()); |