summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-30 17:36:51 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-30 17:53:15 (GMT)
commit1dda2ec55a07f2a51d09f7b1604707e690e884b5 (patch)
treeb5f38a62a8765528687fb9a8c11b752edf1fe282 /Source/cmListFileCache.cxx
parente3a4c2e02ceacd302e8bc6a7dc1bc02b29ab2cfc (diff)
downloadCMake-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.cxx3
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());