summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableWatchCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-23 18:30:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-02 23:04:01 (GMT)
commiteb7b6f6db4b2de70aae80fd8143e701b0cfa4268 (patch)
treefc7f9188bd3533ec92040388396692b382ac094a /Source/cmVariableWatchCommand.cxx
parent499ebb6564800c23bfb6e7b1b706a6202b3f971a (diff)
downloadCMake-eb7b6f6db4b2de70aae80fd8143e701b0cfa4268.zip
CMake-eb7b6f6db4b2de70aae80fd8143e701b0cfa4268.tar.gz
CMake-eb7b6f6db4b2de70aae80fd8143e701b0cfa4268.tar.bz2
cmVariableWatchCommand: Simplify error reporting.
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r--Source/cmVariableWatchCommand.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx
index 9473008..09cef5e 100644
--- a/Source/cmVariableWatchCommand.cxx
+++ b/Source/cmVariableWatchCommand.cxx
@@ -68,11 +68,8 @@ static void cmVariableWatchCommandVariableAccessed(
cmExecutionStatus status;
if(!makefile->ExecuteCommand(newLFF,status))
{
- arg.FilePath = "Unknown";
- arg.Line = 0;
std::ostringstream error;
- error << "Error in cmake code at\n"
- << arg.FilePath << ":" << arg.Line << ":\n"
+ error << "Error in cmake code at\nUnknown:0:\n"
<< "A command failed during the invocation of callback \""
<< data->Command << "\".";
cmSystemTools::Error(error.str().c_str());