diff options
author | Brad King <brad.king@kitware.com> | 2016-08-30 17:36:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-08-30 17:53:15 (GMT) |
commit | 1dda2ec55a07f2a51d09f7b1604707e690e884b5 (patch) | |
tree | b5f38a62a8765528687fb9a8c11b752edf1fe282 /Source/cmListFileCache.cxx | |
parent | e3a4c2e02ceacd302e8bc6a7dc1bc02b29ab2cfc (diff) | |
download | CMake-1dda2ec55a07f2a51d09f7b1604707e690e884b5.zip CMake-1dda2ec55a07f2a51d09f7b1604707e690e884b5.tar.gz CMake-1dda2ec55a07f2a51d09f7b1604707e690e884b5.tar.bz2 |
Improve error message on unexpected end of file
Suggested-by: Stephen Kelly <steveire@gmail.com>
Diffstat (limited to 'Source/cmListFileCache.cxx')
-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()); |