cmVariableWatchCommand: Simplify error reporting.

This commit is contained in:
Stephen Kelly committed 2015-06-03 01:04:01 +02:00
1 parent 499ebb6564
commit eb7b6f6db4
1 file changed
+1 -4
+1 -4
View File
@@ -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());