diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 0e5c81e..a7df5bf 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -486,7 +486,8 @@ const char *cmSystemTools::ConvertToWindowsSlashesAndCleanUp(std::string& path) bool cmSystemTools::ParseFunction(std::ifstream& fin, std::string& name, - std::vector<std::string>& arguments) + std::vector<std::string>& arguments, + const char* filename) { name = ""; arguments = std::vector<std::string>(); @@ -551,8 +552,8 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin, } else { - cmSystemTools::Error("Parse error in read function missing end )", - inbuffer); + cmSystemTools::Error("Parse error in read function missing end )\nIn File: ", + filename, "\nCurrent line:", inbuffer); return false; } } @@ -560,7 +561,8 @@ bool cmSystemTools::ParseFunction(std::ifstream& fin, } else { - cmSystemTools::Error("Parse error in read function ", inbuffer); + cmSystemTools::Error("Parse error in read function\nIn file:", + filename, "\nCurrent line:", inbuffer); return false; } } |